cordova-plugin-fcm

fcm.onNotification() not getting called on clicking the notification when the app is in background

£可爱£侵袭症+ 提交于 2021-02-07 18:15:56
问题 I have installed cordova-plugin-fcm and everything works fine except one little thing. When the app is in background/closed and push notification is sent from firebase, notification pops up in the devices. On clicking that notification from the tray my application starts run, but the control is not entering into fcm.onNotification(). My code in app.component.ts looks like this fcm.onNotification().subscribe(data=>{ if(data.wasTapped){ console.log("Received in background"); console.log(data);

fcm.onNotification() not getting called on clicking the notification when the app is in background

左心房为你撑大大i 提交于 2021-02-07 18:14:31
问题 I have installed cordova-plugin-fcm and everything works fine except one little thing. When the app is in background/closed and push notification is sent from firebase, notification pops up in the devices. On clicking that notification from the tray my application starts run, but the control is not entering into fcm.onNotification(). My code in app.component.ts looks like this fcm.onNotification().subscribe(data=>{ if(data.wasTapped){ console.log("Received in background"); console.log(data);

Can you expire / remove a message remotely on FCM?

落爺英雄遲暮 提交于 2021-01-28 08:35:51
问题 I'm using FCM for my push messages. Its great, however I've a client that needs to be able to remove a push message once its sent - (in case of mistakes / typos etc). I know you can get the message id from when the Topic is queued to send messages, just wondering if there is a way to then use that ID to expire those messages remotely. i.e. to delete the message. 回答1: There is currently no way to delete/remove a message from the server side/console. The message_id is just an identifier that

I'm unable to get Device token in an ionic app as a result of Cannot read property 'onTokenRefresh' of undefined

泄露秘密 提交于 2021-01-07 02:46:06
问题 I followed two tutorials that suggested installed the following: ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated npm install @ionic-native/fcm I kept getting errors after installing to a device that said the fcm plugin isn't installed so I viewed https://www.npmjs.com/package/cordova-plugin-fcm-with-dependecy-updated#fcmontokenrefresh site that suggested uninstalling npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's

I'm unable to get Device token in an ionic app as a result of Cannot read property 'onTokenRefresh' of undefined

徘徊边缘 提交于 2021-01-07 02:45:25
问题 I followed two tutorials that suggested installed the following: ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated npm install @ionic-native/fcm I kept getting errors after installing to a device that said the fcm plugin isn't installed so I viewed https://www.npmjs.com/package/cordova-plugin-fcm-with-dependecy-updated#fcmontokenrefresh site that suggested uninstalling npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's

IONIC 3: onNotification not fire in foreground in IOS?

喜欢而已 提交于 2020-07-09 12:12:05
问题 I have implemented push notification in ionic Everything working fine on android and but in IOS got different scenario: in foreground : onNotification is not fired as well as android working perfect. Background: push notification is received but after tap from notification nothing happend app.component.ts this.fcm.onNotification().subscribe(data => { if(data.wasTapped){ console.log(data.wasTapped); //redirectPageViaNotificationType for redirect page... this.redirectPageViaNotificationType

IONIC 3: onNotification not fire in foreground in IOS?

守給你的承諾、 提交于 2020-07-09 12:11:51
问题 I have implemented push notification in ionic Everything working fine on android and but in IOS got different scenario: in foreground : onNotification is not fired as well as android working perfect. Background: push notification is received but after tap from notification nothing happend app.component.ts this.fcm.onNotification().subscribe(data => { if(data.wasTapped){ console.log(data.wasTapped); //redirectPageViaNotificationType for redirect page... this.redirectPageViaNotificationType

Firebase on Cordova doesn't trigger notifications on iOS Devices

人走茶凉 提交于 2020-01-16 01:08:26
问题 I'm making an app for iOS ed Android with Cordova. I've installed this plugin: phonegap-plugin-push and works on Android. So about iOS, i've installed che certificates in the Firebase project into console. Infact when i try to run notifications for testing i see this: 17 app users associated are the testing I've done about the token communications. The certificate was create .p8 certificates from apple developer console, and i think is correct what I done, because we can see the devices

FCM Plugin issue with ionic 3/angular 5.x

会有一股神秘感。 提交于 2019-12-24 18:36:23
问题 I am using ionic 3. I installed FCM plugin for firebase notification https://github.com/fechanique/cordova-plugin-fcm But when I am using this build fail with these error. How i can fix this. Or there is any other plugin which work perfectly. ........................................................................................... /home/himanshu/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/235767eafc5b20165cd105bbfdfd73a1/res/values/values.xml:133:5-70: AAPT: error: resource android