capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

Support web platform #46

Open imhoffd opened 4 years ago

imhoffd commented 4 years ago

I noticed this plugin does not support web/PWA. FCM users can just use the Firebase client for JS, but for a better cross-platform experience, we can wrap the client in the existing API of this plugin.

@CFT-Chris Maybe you could chime in? I saw your plugin seems to provide the necessary functionality. Perhaps they could be merged?

ref: https://github.com/ionic-team/capacitor/pull/1892#issuecomment-651897284

CFT-Chris commented 4 years ago

Yes, I will gladly merge my plugin with this project. I can work on that when there is a settled method of aggregating service worker code for Capacitor plugins, and when we can put the capacitor.plugin.json and service worker files separated from the www staging directory and into its own platform/web directory.

imhoffd commented 4 years ago

@CFT-Chris Want to chat on the Capacitor Slack?

CFT-Chris commented 4 years ago

@dwieeb Sure. I joined the Slack, but couldn't find you in the search. You can find me "Chris L" with the same blue Gravatar.

Ka-Repo commented 3 years ago

@CFT-Chris @imhoffd any update?

akshitkrnagpal commented 3 years ago

Are there any updates on this?

CFT-Chris commented 3 years ago

I won't have a chance to look into this for a while, so anyone else can feel free to start this work.

Porting my work from https://github.com/CFT-Chris/capacitor-pwa-firebase-msg is a possible starting point, though I haven't looked into v3 Capacitor and am not sure if they merge together very well.