also looking at this
feat(ios): tell the page about a notification that arrives while the app is open
#259
11 files
+410
-58
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -1495,6 +1495,11 @@ export interface CraftNotificationResponseEvent extends CustomEvent { | ||
| 1495 | 1495 | detail: Record<string, any>; |
| 1496 | 1496 | } |
| 1497 | 1497 | |
| 1498 | /** A notification that arrived while the app was open, in the same shape as a tap. iOS. */ | |
| 1499 | export interface CraftNotificationReceivedEvent extends CustomEvent { | |
| 1500 | detail: Record<string, any>; | |
| 1501 | } | |
| 1502 | ||
| 1498 | 1503 | export interface CraftWatchUserInfoEvent extends CustomEvent { |
| 1499 | 1504 | detail: Record<string, any>; |
| 1500 | 1505 | } |
| @@ -1546,6 +1551,7 @@ declare global { | ||
| 1546 | 1551 | craftNetworkChange: CraftNetworkChangeEvent; |
| 1547 | 1552 | craftPushToken: CraftPushTokenEvent; |
| 1548 | 1553 | craftNotificationResponse: CraftNotificationResponseEvent; |
| 1554 | craftNotificationReceived: CraftNotificationReceivedEvent; | |
| 1549 | 1555 | craftWatchMessage: CraftWatchMessageEvent; |
| 1550 | 1556 | craftWatchReachability: CraftWatchReachabilityEvent; |
| 1551 | 1557 | craftWatchContext: CraftWatchContextEvent; |