firebase-cloud-messaging

Not receiving APNs when out of app

点点圈 提交于 2019-12-23 01:04:47
问题 I am using Firebase as my backend and I am using Cloud Messaging for Push Notifications , but my app receives notifications only when the app is open (and Push Notifications do not display when the app is open). I have checked out the Firebase docs and other code examples and I cannot find anything specifically I am missing, and I am receiving the correct output when the app is open. The issue is that no notification appears when outside of the app and no notification banner shows up at all,

In iOS (swift) app, registration of a second Firebase app can't receive remote notifications

≡放荡痞女 提交于 2019-12-22 18:28:44
问题 I'm having two Firebase projects (on se same account, but could be two different accounts) and each project have an iOS app registered with the same bundle ID (so each .plist files have different sender IDs and project ID, but Bindle ID are the same). When I configure Firebase messaging for each app separately using FirebaseApp.configure() and the firebase configuration .plist file for the app, it works, I can send FCM message and the app gets it. (That means that both apps configurations on

Firebase Cloud Messaging: how to send data message to all users? [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-12-22 18:22:23
问题 This question already has answers here : How do you send a Firebase Notification to all devices via CURL? (8 answers) Closed 9 months ago . I would like to send data messages to all users. Is it possible to do it programmatically, without using the Firebase Notifications Console ? The problem with the Console is that the "message text" field at the beginning of the form is compulsory. So, even if I add the custom data key/values, there will also be the standard notification component. As

updating the version of com.google.android.gms to 9.2.0

主宰稳场 提交于 2019-12-22 17:45:16
问题 I am using Ionic 2. I have been using Googles FCM service for push notifications. Today my pc crashed and I had to reinstall the phonegap-plugin-push plugin. Now on build, I get the following error: FAILURE: Build failed with an exception. * What went wrong: 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

How to send Firebase Cloud Messaging notification based on user property, user audiences

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 13:00:34
问题 Using Firebase Admin API how to send notification based on user property, user audiences also App Version. In console send notification based on user property, user audiences also App Version is available. 回答1: There is currently no feature to send notifications to users with specific properties/part of a user audience/app version via the Firebase Admin nor the REST API. 来源: https://stackoverflow.com/questions/50503051/how-to-send-firebase-cloud-messaging-notification-based-on-user-property

FCM Custom notification sound

余生颓废 提交于 2019-12-22 12:54:06
问题 I have Firebase messaging with my andriod application. I am using Firebase to send push notifications. I want to change the default notification sound to a custom one. how can i do it ? Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) .setLargeIcon(image)/*Notification icon image*/ .setSmallIcon(R.mipmap.ic_notif) .setContentTitle(title) .setAutoCancel(true) .setSound

How to send push notifications from server to app using Firebase?

人走茶凉 提交于 2019-12-22 12:41:05
问题 I'm trying to send push notifications from server to app using Firebase, but when the notification reaches app, my app is crashing. PHP code: <?php $registrationIds = array("USER-DEVICE-TOKEN" ); $message = array ( 'message' => 'My awesome message', 'title' => 'My awesome title', 'subtitle' => 'My awesome subtitle', 'tickerText' => 'My awesome Ticker text', 'vibrate' => 1, 'sound' => 1, 'largeIcon' => 'large_icon', 'smallIcon' => 'small_icon' ); $url = 'https://fcm.googleapis.com/fcm/send';

Can I create subtopics when using Firebase Cloud Messaging (for Android)?

半城伤御伤魂 提交于 2019-12-22 12:01:31
问题 I'm currently developing an app that uses the new firebase cloud messaging system. Now I see the topic feature of FCM. I created a topic "news" and want to add sub topics e.g "news/weather" or "news/politics". Altogether there are about 20 subtopics. Is this even possible with FCM and is this god practice? 回答1: I usually start my topics with a prefix and then the subtopic, separating them with a _ . So if I have a sub-topic per user (great for sending user-to-user messages) I end up with:

Sending push Notifications from Java Web Application

∥☆過路亽.° 提交于 2019-12-22 10:27:35
问题 I have a Java web application which needs to send manual and automatic notifications to the user. This notification should go to the user's browser as well as the mobile devices (both iOS & Android). I found out there is no way to send notifications to mobile devices directly if there is no native application running on the mobile device. So my only option seems to be web push notifications. I went through a few articles and I found it very confusing. I don't know where to start. Can I send

Sending Firebase Cloud Message using UID of user

巧了我就是萌 提交于 2019-12-22 10:07:13
问题 I want to build an Android app that allows a user to send notification and data messages to other users. I've started using Firebase only recently, and Firebase Cloud Messaging is still pretty confusing to me. I have already implemented sending a message to a specific device using the Firebase Instance Id. However, in my app, a user can log out and log into their accounts using different devices, so this isn't really what I want. I read the documentation and it's pretty confusing, they