Firebase Cloud Messaging with Ionic app

后端 未结 5 1600
时光说笑
时光说笑 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:50

    I managed to get it work work on IOS. Here's what I did.

    1. Go to Firebase and add a new IOS app for cloud messaging. Follow the instructions and fill up the simple form for your app ID etc. You will generate the GoogleServices-Info.plist file and download. Ignore the cocoapods stuff. You don't need it.

    2. Navigate to your Ionic app platforms/ios and open the xcodeproject file with XCode.

    3. Paste thedownloaded GoogleServices plist file to the root of your Xcode project file.

    4. Run. Or you can try saving then do ionic build ios, ionic emulate ios.

    I added the old phonegap-plugin-push earlier. This had to be removed from my config.xml or else the IOS won't build successfully.

提交回复
热议问题