Firebase Cloud Messaging with Ionic app

后端 未结 5 1592
时光说笑
时光说笑 2020-12-07 12:14

I am developing android/ios app using ionic framework (web technologies) and I want to add Push Notification with the help of new firebase feature FCM.

Right now I a

5条回答
  •  甜味超标
    2020-12-07 12:46

    The FCM support for JS/browser relies on the browser's notification API's, of which I don't believe cordova has one that will work natively. You can and should use FCM for all platforms but you'll have to work through adding support for each platform manually or wait for the push plugin development.

    The phonegap push plugin is being updated to support FCM: Migrate to Firebase Cloud Messaging #929

    Alternatively you can use the old GCM platform with the phonegap plugin already but you'll want to update your server side push API to use FCM as soon as the plugin is ready.

提交回复
热议问题