Open theunreal opened 7 years ago
Hi, I'm not sure what you have tried already but these are the steps I followed to get it working on mine. I'm using Ionic though so it might be different.
if(typeof FCMPlugin !== "undefined"){
alert("FCMPlugin is installed correctly");
FCMPlugin.getToken(function(token){
alert(token);
}, function(err){
alert('error retrieving token: ' + err);
});
}
Hi @eddie-lu ,Thanks, I'm using Ionic 2, for some reasons I followed all these steps and my device don't receive notifications I send from firebase console. No idea why.
I have never used Ionic 2 so I can't help. If the console is showing success status though, then it might be a problem in the onNotification method.
hello,
how to get started using this plugin with ionic framework? i did the following steps but it doesn't work: 1.create new ionic project: ionic start app blank 2.add ios and android platforms: ionic platform add ios/android 3.get app id from confog.xml: widget id="com.ionicframework.mya647383" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" 4.went to firebase and created config files using app id above and put them in app root directory and inside platforms/android and platforms/ios 5.installed this plugin 6.i build the app with ionic build ios/android 7.i run emulator with ionic run ios 8.went to firebase console and send message and nothing show up in the emulator
can someone please explain how to get this plugin to work
@hassanmirza , You cannot receive push notifications in the IOS emulator. You must use an actual device to test this functionality.
I am also not getting notification in iOS device. Can you please help me the file names which needs to be used for debugging.
Same for me. Works fine with android, but not with IOS. Any updates on this?
Same for me too. I have followed all the steps, I am using Ionic 1. I can see push notifications for Android but not for IOS. Does anyone have a solution for this?
Copi your GoogleService-Info.plist inside platform/ios/
I'm also unable to receive notifications on iOS, while Android works fine. Is there an update to this?
Same problem with push notification on iOS. Android works fine. Looks like google change some their API's and this touch iOS. On tokenRefresh function on iOS I get a response of (null).
same here. i am following step by step with https://javebratt.com/ionic-push-notification/
I installed the plugin and configured it, everything works but whenever I send notification from Firebase Console to my app, I don't see any notification on my device. Is there anything I'm missing?