I’m remodeling a PWA to a local iOS software. To attain this I’ve used pwabuilder.com.
The present obstacle I’m going through is the power to obtain FCM push-notifications on my native app. I’ve efficiently applied Firebase on my native app, however I’m caught on find out how to hyperlink the generated gadget 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 System Token is generated within the Swift-code, however my person authenticates himself within the WebView.
So I want a safe approach to retrieve the authenticated person from Swift’s Webview. Or I want a safe approach to inject the Firebase System Token into the webview, so I can use Javascript to ship it to the server.