I’m reworking a PWA to a local iOS software. To realize this I’ve used pwabuilder.com.
The present obstacle I’m dealing with is the flexibility to obtain FCM push-notifications on my native app. I’ve efficiently applied Firebase on my native app, however I’m caught on how one can hyperlink the generated machine token to the person of my app.
Within the PWA utilizing Javascript, I might simply let Firebase generate the token and ship a AJAX-request to my back-end so as to add the firebase token to the person within the lively session.
The issue within the native app is that the Firebase Gadget Token is generated within the Swift-code, however my person authenticates himself within the WebView.
So I would like a safe solution to retrieve the authenticated person from Swift’s Webview. Or I would like a safe solution to inject the Firebase Gadget Token into the webview, so I can use Javascript to ship it to the server.