ReviewOS

also looking at this

craft-native/craft

feat(android): the immediate half of scheduleNotification — ratchet 73 → 72

#172
Merged chris wants to merge feat/android-schedule-notification into main
7 files +690 -227
packages/android/templates/CraftBridge.kt.templatemodified+5-0
Changes to packages/android/templates/CraftBridge.kt.template
@@ -2406,6 +2406,11 @@ class CraftBridge(
24062406
24072407 @JavascriptInterface
24082408 fun scheduleNotification(notificationJson: String) {
2409 // Zig answers through the reply channel, so returning here is what
2410 // stops the promise being settled twice. It declines a delayed
2411 // notification before doing any of the work below.
2412 if (CraftNative.scheduleNotification(activity, notificationJson)) return
2413
24092414 try {
24102415 val notif = JSONObject(notificationJson)
24112416 val title = notif.optString("title", "")