firebase-cloud-messaging

Send Firebase Cloud Messaging notification to users by user property

妖精的绣舞 提交于 2021-02-07 08:55:46
问题 I'm trying to send out an FCM message to a specific set of users (or really, a single user) based on a specific user property but looking through the FCM HTTP API I can't seem to find a way to do that. I can send to users via topics, registration tokens, and device group notification keys, but I don't have any of that infrastructure set up in the near term. I know this functionality exists as you can send such a message via the UI, but I'm not seeing how to do it in the API documentation as

FirebaseMessaging without using google-services.json to support multiple projects

纵饮孤独 提交于 2021-02-07 04:33:08
问题 I am aware of the ability to create a named FirebaseApp instance with custom options for use with, for example, FirebaseDatabase , but I specifically need the ability to use FirebaseMessagaging against different (determined at runtime) Firebase projects. The problem I have is that FirebaseMessaging.getInstance() doesn't support the name argument. Is this in any way possible? The reason I need to support separate projects is that our client connects to different customers server, so each

How to send message from Firebase to device when app is killed? [duplicate]

耗尽温柔 提交于 2021-02-06 11:01:38
问题 This question already has answers here : Android app not receiving Firebase Notification when app is stopped from multi-task tray (6 answers) Closed 4 years ago . I am trying to get familiar with Firebase Notifications. It works fine, but I am stuck with receiving messages from the notification console when the app is not turned on. I know that documentation says that: if your app in foreground or background you can receive message in onMessageReceived method, otherwise user will receive

How to implement firebase cloud messaging in server side?

社会主义新天地 提交于 2021-02-06 10:20:47
问题 After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googleapis.com/fcm/send but my device doesn't receive any notification. Is there any way to solve this? Or did I miss anything? my cron job is working fine for my devices that is

How to implement firebase cloud messaging in server side?

老子叫甜甜 提交于 2021-02-06 10:20:25
问题 After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googleapis.com/fcm/send but my device doesn't receive any notification. Is there any way to solve this? Or did I miss anything? my cron job is working fine for my devices that is

How to implement firebase cloud messaging in server side?

牧云@^-^@ 提交于 2021-02-06 10:20:07
问题 After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googleapis.com/fcm/send but my device doesn't receive any notification. Is there any way to solve this? Or did I miss anything? my cron job is working fine for my devices that is

Firebase - Cannot assign value of type 'AppDelegate' to type 'UNUserNotificationCenterDelegate?'

被刻印的时光 ゝ 提交于 2021-02-06 10:09:24
问题 I always get compiling erros when deploying firebase using this tutorial: https://firebase.google.com/docs/cloud-messaging/ios/client My deployment SDK is 9.0. Errors I get: How can I fix this? Cannot assign value of type 'AppDelegate' to type 'UNUserNotificationCenterDelegate?' 1st scenario - What I did step by step (following the tutorial): pod init with the following: pod 'Firebase/Core' pod 'Firebase/Messaging' pod install "import Firebase" on top of AppDelegate class 2nd scenario -

Firebase - Cannot assign value of type 'AppDelegate' to type 'UNUserNotificationCenterDelegate?'

若如初见. 提交于 2021-02-06 10:09:17
问题 I always get compiling erros when deploying firebase using this tutorial: https://firebase.google.com/docs/cloud-messaging/ios/client My deployment SDK is 9.0. Errors I get: How can I fix this? Cannot assign value of type 'AppDelegate' to type 'UNUserNotificationCenterDelegate?' 1st scenario - What I did step by step (following the tutorial): pod init with the following: pod 'Firebase/Core' pod 'Firebase/Messaging' pod install "import Firebase" on top of AppDelegate class 2nd scenario -

Check if Firebase registration token is invalid

二次信任 提交于 2021-02-05 09:48:46
问题 I have an app where a user can register/login via Firebase. A user can have multiple devices among which all his data is being shared (of course he must be logged in). I keep track of all devices by their firebase device token and send appropriate update notifications when the user updates something on a particular device Now I know that the firebase token is being refreshed, but how do I know that a token is invalid? Lets say a user has 4 devices where he is logged with one account. Now he

Check if Firebase registration token is invalid

巧了我就是萌 提交于 2021-02-05 09:48:04
问题 I have an app where a user can register/login via Firebase. A user can have multiple devices among which all his data is being shared (of course he must be logged in). I keep track of all devices by their firebase device token and send appropriate update notifications when the user updates something on a particular device Now I know that the firebase token is being refreshed, but how do I know that a token is invalid? Lets say a user has 4 devices where he is logged with one account. Now he