firebase-cloud-messaging

How to send FCM notification to all android devices using Node.js

心不动则不痛 提交于 2020-06-15 21:36:36
问题 I want to send the notification to my Android app developed using Ionic t from Node.Js code. I have tried following code and getting Exactly one of topic, token or condition is required. How can I send notification all my users without any condition? var serviceAccount = require("/path/to/config.json"); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://myApp.firebaseio.com" }); var message = { notification: { title: '$GOOG up 1.43% on the day',

iOS: APNS Certificate expires in 30 days - how is this related to APN key in Firebase messaging?

a 夏天 提交于 2020-06-15 05:49:05
问题 I am using Firebase Messaging for iOS and Android push notifications. I am using the new "APNs Authentication Key" mechanism and not "APN certificate" I got an email from Apple that my "Push Certificate" will expire in 30 days and per their help document, I need to switch to this new certificate otherwise push services will stop working for my deployed app in 30 days. I'm confused on what to do and whether APNS certificate expiring has any relevance to my app that uses APN Keys. Per Apple's

Firebase messaging - whats “content_available” : true

最后都变了- 提交于 2020-06-13 05:40:30
问题 I saw many examples of firebase push like { "to" : "egu9jGiMcew:APA91bFv2Rewdz.....KZZmEURvbq-aA2", "data": { "id": 19, "title": "Title test", "msg": "Text of the test", "code": 2, "infosUrl": "ttp://www.secondguide.tours", "longitude": 5.5, "latitude": 44.5, "eventLocation": "nowhere", "startDate": "24/07/2016", "endDate": "25/07/2016", }, "delay_while_idle" : false, "priority" : "high", "content_available" : true } I did not get the purpose of "delay_while_idle" : false, "priority" : "high"

How to send a firebase message to topic from Android

妖精的绣舞 提交于 2020-06-12 08:53:51
问题 I want to send a message to FCM topics from within my Android app. Sending the message through the Firebase console is working well, but once a user executes a particular action, I want a message to be sent to all other users who have subscribed to a particular topic. In the documentation there is this code: // The topic name can be optionally prefixed with "/topics/". String topic = "highScores"; // See documentation on defining a message payload. Message message = Message.builder() .putData

How to send a firebase message to topic from Android

白昼怎懂夜的黑 提交于 2020-06-12 08:53:10
问题 I want to send a message to FCM topics from within my Android app. Sending the message through the Firebase console is working well, but once a user executes a particular action, I want a message to be sent to all other users who have subscribed to a particular topic. In the documentation there is this code: // The topic name can be optionally prefixed with "/topics/". String topic = "highScores"; // See documentation on defining a message payload. Message message = Message.builder() .putData

Where to save GoogleService-Info.plist in Flutter without Xcode?

安稳与你 提交于 2020-06-10 13:48:42
问题 I have my app already submited, reviewed and online in Google Play & iTunes, but recently I added the firebase_messaging plugin for notification feature. While joining the Firebase Cloud Messaging, Google forced me to download two files: google-services.json - Saved in the folder of my flutter App: MyApp\android\app GoogleService-Info.plist - I don't know where to save it, but tried on MyApp\ios\Runner and MyApp\ios\Runner.xcodeworkspace without success And all the tutorials point to the use

Where to save GoogleService-Info.plist in Flutter without Xcode?

爷,独闯天下 提交于 2020-06-10 13:46:20
问题 I have my app already submited, reviewed and online in Google Play & iTunes, but recently I added the firebase_messaging plugin for notification feature. While joining the Firebase Cloud Messaging, Google forced me to download two files: google-services.json - Saved in the folder of my flutter App: MyApp\android\app GoogleService-Info.plist - I don't know where to save it, but tried on MyApp\ios\Runner and MyApp\ios\Runner.xcodeworkspace without success And all the tutorials point to the use

Firebase InstanceId unresolved identifier swift4

跟風遠走 提交于 2020-05-29 05:40:11
问题 I have recently updated My SWIFT applications pod file, And because of that firebase version is now updated to a 5.2. Which now gives me following error while getting a device instance id. let tokenId = InstanceID.instanceID().token() error: Use of unresolved identifier 'InstanceID' Previously this code was working fine and I was getting Application's Instance Id. Following is content of my pod file. # Uncomment the next line to define a global platform for your project # platform :ios, '11.2

Firebase InstanceId unresolved identifier swift4

♀尐吖头ヾ 提交于 2020-05-29 05:38:41
问题 I have recently updated My SWIFT applications pod file, And because of that firebase version is now updated to a 5.2. Which now gives me following error while getting a device instance id. let tokenId = InstanceID.instanceID().token() error: Use of unresolved identifier 'InstanceID' Previously this code was working fine and I was getting Application's Instance Id. Following is content of my pod file. # Uncomment the next line to define a global platform for your project # platform :ios, '11.2

Firebase InstanceId unresolved identifier swift4

佐手、 提交于 2020-05-29 05:38:04
问题 I have recently updated My SWIFT applications pod file, And because of that firebase version is now updated to a 5.2. Which now gives me following error while getting a device instance id. let tokenId = InstanceID.instanceID().token() error: Use of unresolved identifier 'InstanceID' Previously this code was working fine and I was getting Application's Instance Id. Following is content of my pod file. # Uncomment the next line to define a global platform for your project # platform :ios, '11.2