firebase-notifications

Firebase Notifications - How to Send Notifications only to Specific Users?

倖福魔咒の 提交于 2019-12-12 03:49:39
问题 I'm building an app using Firebase Notifications where a user can enter their zip code and then receive notifications for specific events happening in their locality. How do I only send notifications to a specific user? I've tried including Zip Code in the Advanced Options sections of Firebase Notifications, but it still sends the notification to all users. 回答1: Seems like Topics is what you are looking for. When the user enters their zipcode you can subscribe them to a topic eg: /topics/zip

Unable to dispay the received firebase quickstart sample messaging notification

不想你离开。 提交于 2019-12-12 03:44:38
问题 I'm trying out the Firebase Cloud Messaging Quickstart sample code (Android) from the following https://firebase.google.com/docs/samples I managed to run the sample code, but when i try to send the notification from the Firebase console, despite i can see the notification content i sent in the logcat, but it didn't display in my Android Studio Emulator. There are few errors in the logcat. I'm using Android Studio 2.1.1 Windows 64-bit Emulator Nexus_5x Android API 23 As i can see the

Sending notifications to multiple devices not subscribed to a certain topic

夙愿已清 提交于 2019-12-12 03:12:40
问题 In a usual Firebase notification scenario, I understand that my apps should subscribe themselves to certain topics that they want to receive notifications for. However, there are cases in which I want to send notifications to specific devices that are not subscribed to a certain topic. Currently the only way I see of achieving this in Firebase would be to send multiple requests (can easily be a 100+) for each device. Is this the way that this is intended to work or am I missing something?

Firebase notification integration throws java.lang.IncompatibleClassChangeError

依然范特西╮ 提交于 2019-12-12 03:09:48
问题 I'm trying to integrate firebase notification to existing android application. But when the app start it crashes. Process: uk.co.stableweb.geethika, PID: 24344 java.lang.IncompatibleClassChangeError: com.google.firebase.auth.FirebaseAuth at dalvik.system.DexFile.defineClassNative(Native Method) at dalvik.system.DexFile.defineClass(DexFile.java:226) at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219) at dalvik.system.DexPathList.findClass(DexPathList.java:338) at dalvik.system

Firebase + Push + iOS

删除回忆录丶 提交于 2019-12-11 08:53:54
问题 We encountering a problem during the push notification send in firebase. Currently we have done these steps:- We created a new app ID com.company.appname.country (without assigning it the push notification service) We have create a development certificate for the app id com.company.appname.country (this creating a sign key request from local keychain) We have create a create a sign key to create the development SSL certificate for the push notification (using the same key request created in

Android FCM Notification not getting in some Android devices

♀尐吖头ヾ 提交于 2019-12-10 23:16:05
问题 When I implement the FCM Notifications for Android app. I am not getting the notifications in some Android devices like Mi, Oppo, One Plus Two etc. in Mi getting refreshed token but not getting the notification and Oppo or One Plus Two not getting the refreshed token and notifications. How can I fix this problem? Thanks... 回答1: Check your android manifest file. It should be like this <service android:name="yourFireBaseMessagingServiceClass" android:enabled="true" android:exported="true"

App doesn't show firebase notifications (broadcast intent callback: result=CANCELLED forIntent)

荒凉一梦 提交于 2019-12-10 19:21:23
问题 I can't receive my Firebase Notifications when the app is killed or in background. I signed the APK, and it doesn't work, and when I send my Data notification with JSON the logcat shows me this error: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.example.paolomazza.firebasedemo3 (has extras) } Given the following Manifest, what could be the cause of this bug? Thanks in Advance <?xml version="1.0" encoding="utf-8"?> <uses-permission

FirebaseMessagingService : intent.putExtra() does not work if app is not running

半世苍凉 提交于 2019-12-10 13:44:41
问题 EDIT3: Ok I found the problem : If the app is killed, sending both data and notification won't trigger onMessageReceived . notification needs to be set to null if the target device is android. That's really a dumb behaviour. Original post: I can successfully retrieve the bundle from the intent passed by the notificationBuilder to the activity when the app is launched. However, if I kill the app, the notification still works but the GetExtras() from the intent is null. In my

From notification to fragment when app is in the background?

拟墨画扇 提交于 2019-12-10 12:18:37
问题 I am building an app with fragments and I am using Firebase notifications. I want, when user click on notification, to send him to the Fragment1 on MainActivity. And, I've done it, but the problem is that works only when app is in the foreground. When app is in background notification sends me to the MainActivity not to the Fragment1. This is MyFirebaseMessagingService: @Override public void onMessageReceived(RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); Log.d(TAG,

Firebase push notification not working

我只是一个虾纸丫 提交于 2019-12-10 03:06:00
问题 I developed an android applicaiton. I used firebase for notification. I read firebase documentation then I made them respectively. I could send a push notification to one device by using InstanceID token. But I could not send push notification to all devices. Please help me. MyFirebaseMessagingService.java public class MyFirebaseMessagingService extends FirebaseMessagingService { private static final String TAG = "MyFirebaseMsgService"; /** * Called when message is received. * * @param