GitHub user breautek edited a comment on the discussion: window.cordova and window.FirebasePlugin are not accessable
The cordova plugin would be an interface to the "SDK on device" part of the architecture. Generally speaking a plugin would integrate the native API for the running platform. So android implementation of the plugin, the plugin will integrate with the Android transport layer. the ios implementation of the plugin would integrate with the iOS / APNs, ... so on It would be used to setup a "subscriber". Like I said earlier I'm not really familiar with Firebase, but there is going to be some way to tie users to some kind of identifier so that the backend can push notifications to specific users. Usually backends have an ability to push a notification to specific users,or a group of users, or to do a broadcast (to all users). Generally speaking you don't use "Web / JS" SDKs on Cordova environments because they likely assume a traditional website setup, which Cordova is not that kind of environment. The plugins fills in the gap to bridge the cordova web environment with the native APIs. Generally you don't need to be too concerned about the native integrations, unless if you start developing plugins yourself but it's good to understand the architecture. > Generally speaking you don't use "Web / JS" SDKs on Cordova environments > because they likely assume a traditional website setup This is not to say you can't use web frameworks and such, for example in my cordova apps I do use ReactJS. Just that some frameworks assumes a traditional web environment will likely have some caveats or issues. Generally these are frameworks that involves API keys, since API keys are typically tied to a domain, and your cordova application doesn't have a "domain". But native SDKs have other abilities to restrict your API usage safely. I hope this makes sense. Edit: reword to avoid confusion with the Apache core platform implementations GitHub link: https://github.com/apache/cordova/discussions/521#discussioncomment-11835246 ---- This is an automatically sent email for issues@cordova.apache.org. To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org