diff --git a/examples/reactts/public/index.html b/examples/reactts/public/index.html index d68b933..aaffb6b 100644 --- a/examples/reactts/public/index.html +++ b/examples/reactts/public/index.html @@ -18,6 +18,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> React App + diff --git a/examples/reactts/public/manifest.json b/examples/reactts/public/manifest.json new file mode 100644 index 0000000..5583765 --- /dev/null +++ b/examples/reactts/public/manifest.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://json.schemastore.org/web-manifest-combined.json", + "display": "standalone", + "start_url": "/", + "name": "NotificationAPI Manifest Example", + "short_name": "OS Manifest" +} diff --git a/examples/reactts/src/NotificationAPIComponent.tsx b/examples/reactts/src/NotificationAPIComponent.tsx index 390a803..20b8a87 100644 --- a/examples/reactts/src/NotificationAPIComponent.tsx +++ b/examples/reactts/src/NotificationAPIComponent.tsx @@ -11,6 +11,7 @@ const NotificationAPIComponent = memo((props) => { customServiceWorkerPath: '/notificationapi-js-client-sdk/reactts/notificationapi-service-worker.js' }); + notificationapi.askForWebPushPermission(); notificationapi.showInApp({ root: 'container', popupPosition: PopupPosition.BottomRight