Open cheike569 opened 7 years ago
Hi,
I am using Ionic 2 with cordova-plugin-fcm. However, after a lot of trouble walking through the ionic documentation finding out they are shutting down their ionic push service, I ended up using this sleek plugin.
In my app.component.ts I am calling:
app.component.ts
FCMPlugin.getToken( (t) => { console.log(t); }, (e) => { console.log(e); } ); FCMPlugin.onNotification( (data) => { console.log(data); }, (e) => { console.log(e); } );
It works and I do receive a token. Though I can only receive notifications:
FCMPlugin.subscribeToTopic()
I cannot
Isn't my Ionic app subscribed automatically to my App Bundle Identifier, topics all and ios ?
all
ios
Have you tried sending to /topics/all ? I did this with the API today and it works for my Android device.
Hi,
I am using Ionic 2 with cordova-plugin-fcm. However, after a lot of trouble walking through the ionic documentation finding out they are shutting down their ionic push service, I ended up using this sleek plugin.
In my
app.component.ts
I am calling:It works and I do receive a token. Though I can only receive notifications:
FCMPlugin.subscribeToTopic()
and then sending notifications to this topic via firebaseI cannot
Isn't my Ionic app subscribed automatically to my App Bundle Identifier, topics
all
andios
?