GitHub user breautek added a comment to the discussion: window.cordova and window.FirebasePlugin are not accessable
> I also tried it without InAppBrowser like this, but I had the same issues: window.location = url; While it is possible to make the main webview load an external site, your external site doesn't host the cordova API. It is possible to make this work, but it will be the wrong approach to take as it will open up security concerns. I'm not very familiar with Firebase or Push messaging in general so I'm going to have to keep this generic. If I understand correctly, you have a mobile application (e.g. the Cordova App) and a remote server and you want to be able to push notifications to the mobile application. Generally speaking, the cordova applcation should be a self-contained web app. That is it contains all the JS code, plugins, to run a web app locally. The web application can network (XHR) requests to a remote server for data, logging in, etc. Apple & Google both have an expectation that you're application can run gracefully while offline. Push notification systems are usually a form of a [Publisher-Subscriber System](https://medium.com/@akshatsharma0610/system-design-architecture-publisher-subscriber-model-7430740085d5) where you have a broker (e.g. FireBase), a publisher (usually a backend server) using a backend api, and finally a subscriber, usually a client listens for published messages via a client side API (e.g. the firebase cordova plugin). For firebase, their introduction guide goes into more detail on the architecture: https://firebase.google.com/docs/cloud-messaging  GitHub link: https://github.com/apache/cordova/discussions/521#discussioncomment-11835019 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
