also looking at this
feat(android): the immediate half of scheduleNotification — ratchet 73 → 72
#172
7 files
+690
-227
| @@ -2406,6 +2406,11 @@ class CraftBridge( | ||
| 2406 | 2406 | |
| 2407 | 2407 | @JavascriptInterface |
| 2408 | 2408 | 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 | ||
| 2409 | 2414 | try { |
| 2410 | 2415 | val notif = JSONObject(notificationJson) |
| 2411 | 2416 | val title = notif.optString("title", "") |