We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2fc898 commit 8e7bd4cCopy full SHA for 8e7bd4c
1 file changed
examples/demo/App.tsx
@@ -73,6 +73,9 @@ function App() {
73
OneSignal.Notifications.addEventListener('click', (e: NotificationClickEvent) => {
74
log.i(TAG, `Notification click: ${e.notification.title ?? ''}`);
75
});
76
+ OneSignal.Notifications.addEventListener('permissionChange', (granted: boolean) => {
77
+ log.i(TAG, `Permission changed: ${granted}`);
78
+ });
79
OneSignal.Notifications.addEventListener('foregroundWillDisplay', (e: NotificationWillDisplayEvent) => {
80
log.i(TAG, `Notification foregroundWillDisplay: ${e.getNotification().title ?? ''}`);
81
e.preventDefault();
0 commit comments