cordova-plugin-fcm

how to get image in push notfication firebase ionic

北城余情 提交于 2019-12-14 02:26:51
问题 hi i am using ionic1 push notification usif FCM functionality with the help of firebase i am trying to get notification with image but i am not able to do this correctly any one help how to do this notification working fine but with image like flikart. 来源: https://stackoverflow.com/questions/46602654/how-to-get-image-in-push-notfication-firebase-ionic

meteor cordova app push notifications (FCM/GCM)

余生颓废 提交于 2019-12-12 04:53:34
问题 I tried to implement push notifications mainly for the hybrid android app I build with meteor. Tried the raix:push atmosphere package one will easily find on google as first reference on google. After it seemed not to work we also tried OneSignal as a complete solution. In the end I tried to set up FCM without any wrapper around it. And then I realized that google play services is required in order to use FCM at all. Now our Question is: We have an App which we won't distribute via Google

Which is the package name on the build gradle?

匆匆过客 提交于 2019-12-12 04:08:55
问题 I'm trying to set the push notifications using firebase. During the setup it asks for the package name which is supposed to be on build.gradle and should look like this com.yourapp.android But I can't find anything like that... You guys know where to find it? Thanks! 回答1: Look for applicationId in your build.gradle. That value is your app's unique package name. Alternately, it may be that ionic adds code to use the "package" attribute value from AndroidManifest.xml. 回答2: You can find the

Execution failed for task ':app:checkDebugDuplicateClasses'. Ionic4 Android

放肆的年华 提交于 2019-12-10 13:00:55
问题 I'm currently working on an ionic4 application, but recently it stopped working while building the application on an android reall device after adding https://ionicframework.com/docs/native/fcm plugin to the application. At first it was complaining about fabric key, however I never aimed to use fabric crashlytic on my app. The error logs: * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > 1 exception was raised by workers: java.lang.RuntimeException: Duplicate

Ionic - Push notification. Method fcm.onNotification not work when app is open/running

余生长醉 提交于 2019-12-08 08:10:55
问题 I have a ionic app (v4). I want send push notification. I use cordova-plugin-fcm-with-dependecy-updated plugin and @ionic-native/fcm dependency. In app.component.ts I have: initializeApp() { this.plt.ready().then(() => { this.fcm.onNotification().subscribe(data => { console.log(data) }); }); } I send a push notification: POST https://fcm.googleapis.com/fcm/send headers: Content-Type: application/json Authorization: key=my-key body: { "notification":{ "title":"My Title", "body":"My body",

How to handle fcm background notification without tapping on it in ionic 3

好久不见. 提交于 2019-12-08 02:39:46
问题 i am using FCM in ionic 3. I am getting notification properly when the app is in foreground. When I receive a notification in background i am getting the data in the notification only after tapping the notification. But i want to get the data without tapping on the notification. For example see the below code. this.fcm.onNotification().subscribe(data => { if(data.wasTapped){ console.log("Received in background"); } else { console.log("Received in foreground"); }; }); Here i am getting data if

How to handle fcm background notification without tapping on it in ionic 3

狂风中的少年 提交于 2019-12-06 07:28:52
i am using FCM in ionic 3. I am getting notification properly when the app is in foreground. When I receive a notification in background i am getting the data in the notification only after tapping the notification. But i want to get the data without tapping on the notification. For example see the below code. this.fcm.onNotification().subscribe(data => { if(data.wasTapped){ console.log("Received in background"); } else { console.log("Received in foreground"); }; }); Here i am getting data if data.wasTrapped is true else in the foreground. My problem is to get data without tapping the

Xcode error when building app: line 7: /resources-to-copy-Project.txt: Permission denied

百般思念 提交于 2019-12-04 12:17:38
问题 When I try to build cordova application in Xcode I get the following error: /Users/User/PhpstormProjects/project/project-app/platforms/ios/Pods/Target Support Files/Pods-Project/Pods-Project-resources.sh: line 7: /resources-to-copy-Project.txt: Permission denied Also I noticed that following file resources-to-copy-Project.txt cannot be found anywhere on my laptop and because of that I tried running pod install with different versions of cocoapods. I already tried adding permissions to folders

Google Login + FCM together in an Ionic 2 project

ぐ巨炮叔叔 提交于 2019-12-02 12:59:13
问题 I am using Ionic2 framework and my app requires Google Login and fcm to receive notifications. I first integrated the Google Social Login using google plus native plugin and it was working perfectly fine. Then, on adding fcm I received following errors: Found com.google.android.gms:play-services-location:11.+, but version 9.0.0 is needed for the google-services plugin. Found com.google.android.gms:play-services-auth:11.8.0, but version 9.0.0 is needed for the google-services plugin. Found com