firebase-cloud-messaging

processDebugResources'. > Error: more than one library with package name 'com.google.android.gms'

谁说我不能喝 提交于 2020-01-07 02:34:08
问题 I added Firebase Cloud Messaging to my Android app and I'm upgrading my old app from GCM to FCM. I tried the sample app by following the steps in Firebase Console, which works fine. After embedding same code into the existing code in my app, even though the build is successful, while trying to run the app on a device in Android Studio, I get this error: getting the error: more than one library with package name 'com.google.android.gms'. See the dependencies screenshot taken from terminal. I

FCM (Firebase Cloud Messaging) in Windows Mobile App (Cordova)?

泄露秘密 提交于 2020-01-06 16:18:48
问题 I have created mobile App with Cordova 5.0 in Android and iOS. Now, I want to develop the same App in Windows Platform. I am able to use other plug-ins as they provide Windows platform support too. Here is a plug-in I used for FCM. This plugin does not provide Windows support, so I am planning to go with Windows native programming. Does FCM provide Native Windows support? 回答1: There is currently no Windows Phones client for FCM. 回答2: My recommendation is OneSignal OneSignal plugin works with

How to get test GCM tokens?

纵饮孤独 提交于 2020-01-06 15:49:49
问题 We have implemented a gateway service and push manager services to send push messages to GCM. Now we want to do some automated testing. How we can test GCM tokens? We can get some tokens from real devices and after sometime they might expire and tests will fail. To test positive and negative scenarios we need known valid and invalid GCM tokens. Any help guys? Thanks. 回答1: Okay, so I may have misunderstood the question, thinking that you were asking how to test registration tokens. If by test

How to get test GCM tokens?

假如想象 提交于 2020-01-06 15:49:07
问题 We have implemented a gateway service and push manager services to send push messages to GCM. Now we want to do some automated testing. How we can test GCM tokens? We can get some tokens from real devices and after sometime they might expire and tests will fail. To test positive and negative scenarios we need known valid and invalid GCM tokens. Any help guys? Thanks. 回答1: Okay, so I may have misunderstood the question, thinking that you were asking how to test registration tokens. If by test

Firebase Functions - admin.messaging().sendToTopic executes but never makes it to the `then` block

送分小仙女□ 提交于 2020-01-06 08:16:56
问题 For some reason the then block of an admin function doesn't seem to be executing - I don't see any of the console.log messages in the firebase console : Here is all of my firebase functions code: // The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers. const functions = require('firebase-functions'); const firebaseHelper = require('firebase-functions-helper'); const serviceAccount = require('./serviceAccountKey.json'); var toPlainObject = require('lodash

How do I configure apache-traffic-server to forward an http request to an https remote server?

筅森魡賤 提交于 2020-01-06 08:12:52
问题 I have an esp8266 which was directly sending http requests to http://fcm.googleapis.com/fcm/send but since google seems have stopped allowing requests to be send via http, I need to find a new solution. I started down a path to have the esp8266 directly send the request via https and while it works on a small example the memory footprint required for the https request is to much in my full application and I end up crashing the esp8266. While there are still some avenues to explore that might

How do I configure apache-traffic-server to forward an http request to an https remote server?

三世轮回 提交于 2020-01-06 08:12:11
问题 I have an esp8266 which was directly sending http requests to http://fcm.googleapis.com/fcm/send but since google seems have stopped allowing requests to be send via http, I need to find a new solution. I started down a path to have the esp8266 directly send the request via https and while it works on a small example the memory footprint required for the https request is to much in my full application and I end up crashing the esp8266. While there are still some avenues to explore that might

How to use FCM topics for notification in chat app?

佐手、 提交于 2020-01-06 06:09:35
问题 I am make chat feature with Flutter and Firestore backend. Every message is new document in Firestore collection with UID and text field. Chat is 1:1 and random so no know who user will talk to before enter chat. DocID in chat collection are all auto-id. I have read can use topics to manage send notification. This should be easier than use individual device fcm token. Anyone know how to implement use topic for this random 1:1 chat app? 回答1: You can definitely use a separate topic for each 1:1

iOS app doesn't receive background push notifications from Firebase

我与影子孤独终老i 提交于 2020-01-06 06:09:13
问题 I'm trying to get push notifications working in a Cordova app I'm working on. They work perfectly in the Android app and they work perfectly in the iOS app when it's in the foreground, but I don't receive any notifications when the app is in the background or terminated. I have the "Push Notifications" and "Background Modes - Remote notifications" capabilities enabled: And I'm 100% sure the server has the device token (since push notifications are working in the foreground, and I can see it

iOS app doesn't receive background push notifications from Firebase

最后都变了- 提交于 2020-01-06 06:08:14
问题 I'm trying to get push notifications working in a Cordova app I'm working on. They work perfectly in the Android app and they work perfectly in the iOS app when it's in the foreground, but I don't receive any notifications when the app is in the background or terminated. I have the "Push Notifications" and "Background Modes - Remote notifications" capabilities enabled: And I'm 100% sure the server has the device token (since push notifications are working in the foreground, and I can see it