fcm icon indicating copy to clipboard operation
fcm copied to clipboard

Support web platform

Open imhoffd opened this issue 4 years ago • 6 comments

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

imhoffd avatar Jul 01 '20 20:07 imhoffd

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.

CFT-Chris avatar Jul 02 '20 01:07 CFT-Chris

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

imhoffd avatar Jul 06 '20 21:07 imhoffd

@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.

CFT-Chris avatar Jul 07 '20 04:07 CFT-Chris

@CFT-Chris @imhoffd any update?

Ka-Repo avatar Jun 23 '21 12:06 Ka-Repo

Are there any updates on this?

akshitkrnagpal avatar Jul 05 '21 03:07 akshitkrnagpal

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.

CFT-Chris avatar Jul 06 '21 23:07 CFT-Chris