firebase-cloud-messaging

Execution failed for task ':processDebugGoogleServices'

血红的双手。 提交于 2020-01-03 05:00:08
问题 I'm trying to test cordova-plugin-fcm , but when I try to build the project I faced this error : Execution failed for task ':processDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0. And my build.gradle file : apply plugin: 'com.android

Xamarin forms: Push notification is not working on Android 7.1.2

谁说我不能喝 提交于 2020-01-03 03:18:07
问题 Push notification is not working on Android device having a version number 7.1.2, but working fine on version 9. Following is my code for showing the notification. if (Build.VERSION.SdkInt < BuildVersionCodes.O) { var intent = new Intent(this, typeof(MainActivity)); intent.AddFlags(ActivityFlags.ClearTop); var pendingIntent = PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.OneShot); var notificationBuilder = new Android.App.Notification.Builder(this, Utils.CHANNEL_ID)

Flutter firebase messaging not receiving notification

这一生的挚爱 提交于 2020-01-03 02:00:11
问题 I currently working on flutter notification using firebase messaging, i couldn't receive any notification. I send the notification via server using curl , however i can get it work in native android app (Android Studio) but not in flutter, any help would be appreciated. Below is my code. Flutter Notification code class FirebaseNotifications { FirebaseMessaging _firebaseMessaging; void setUpFirebase() { _firebaseMessaging = FirebaseMessaging(); firebaseCloudMessaging_Listeners(); } void

Manifest merger failed with multiple errors when adding firebase messaging service to my AndroidManifest.xml file

雨燕双飞 提交于 2020-01-02 12:24:28
问题 I was hoping to add Firebase cloud messaging to my app. I followed codelab tutorial for this and it was working correctly for the sample app, but when I try to add <service> tags to my application Manifest merger errors occurs. The strange part is that it is working without adding those services to my Manifest file! Here it is the error: Error:packageName/app/src/main/AndroidManifest.xml:52:9-58:19 Error: Element service#packageName.firebase.MyFirebaseInstanceIdService at AndroidManifest.xml

Manifest merger failed with multiple errors when adding firebase messaging service to my AndroidManifest.xml file

纵然是瞬间 提交于 2020-01-02 12:24:10
问题 I was hoping to add Firebase cloud messaging to my app. I followed codelab tutorial for this and it was working correctly for the sample app, but when I try to add <service> tags to my application Manifest merger errors occurs. The strange part is that it is working without adding those services to my Manifest file! Here it is the error: Error:packageName/app/src/main/AndroidManifest.xml:52:9-58:19 Error: Element service#packageName.firebase.MyFirebaseInstanceIdService at AndroidManifest.xml

Storing FCM tokens online

痴心易碎 提交于 2020-01-02 09:13:24
问题 I am working with an iOS app which calls an Firebase cloud function, to store FCM tokens, for later use when sending notifications. The problem is that it does not work. I am using a Cloud Firestore database. When the function is called, here is what I want to happen. The function checks the parameters against a database. If the data in the provided parameter is already found in the DB then nothing should happen. If it is not found, then it should be added to the DB. My cloud function code is

Storing FCM tokens online

心不动则不痛 提交于 2020-01-02 09:13:23
问题 I am working with an iOS app which calls an Firebase cloud function, to store FCM tokens, for later use when sending notifications. The problem is that it does not work. I am using a Cloud Firestore database. When the function is called, here is what I want to happen. The function checks the parameters against a database. If the data in the provided parameter is already found in the DB then nothing should happen. If it is not found, then it should be added to the DB. My cloud function code is

firebase messaging when Notification clicked to open my Activity

孤人 提交于 2020-01-02 05:35:07
问题 The firebase is working fine , pushing the notification on the status bar but my challange is when the notification is clicked , I want it to take me to my Custom Activity not the default launcher , How do I go about it? public class CustomActivity extends AppCompatActivity { private static final String TAG = "CustomActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TextView mymessage =

How to send push notification from Firebase using google apps script?

隐身守侯 提交于 2020-01-02 04:34:06
问题 I want to write a little script that tells Firebase to push notification if a certain condition is met. How to send push notification from Firebase using google apps script? 回答1: I'd never tried this before, but it's actually remarkably simple. There are two things you need to know for this: How to send a HTTP request to Firebase Cloud Messaging to deliver a message How to call an external HTTP API from with Apps Script Once you have read those two pieces of documentation, the code is fairly

FirebaseMessaging module not found using cocoapods iOS

不羁岁月 提交于 2020-01-02 03:12:27
问题 I'm getting a error that 'FirebaseMessaging module not found'. Below is my pod file structure. Official documentation shows Firebase/Messaging is available. I've written in pod file and tried to install it. The stats in terminal doesn't shows FirebaseMessaging installation and same does that pods directory. Below is terminal stats. Where I'm going wrong? 回答1: The culprit was Pods! I removed all CocoaPods from Project using this link. Thereafter, I again added Pods to project using this link.