firebase-notifications

How to know “topic” name from Firebase notification on iOS

你说的曾经没有我的故事 提交于 2020-01-11 08:42:45
问题 I'm trying to use Firebase in my iOS application. I successfully integrated it and receiving notifications from all 3 Targets (user segment, topic and single device). My question is how to know a particular notification is received from which topic? I'm following this documentation and this github page EDIT: I'm testing on iOS11.2 (XCode9.2) & my response (userInfo) is: { aps = { alert = test; sound = default; }; "gcm.message_id" = "0:1513282329413512%38894e8e28894e8e"; "gcm.n.e" = 1; "gcm

How to push firebase notification only when CheckBoxPreference is checked?

不羁岁月 提交于 2020-01-06 03:04:50
问题 I am using Firebase notifications in order to notify users about new data posted to the app. I'm following the example given here: https://github.com/firebase/quickstart-android/tree/master/messaging Although, I am also providing preference to the user. They should get notified only when they chose to get notified by checking the CheckBoxPreference . I have set the CheckBoxPreference and also the onPreferenceChangeListener successfully. The problem is that user is getting the notification

How can I confirm that firebase notification was actually sent (fcm)?

↘锁芯ラ 提交于 2020-01-05 05:37:14
问题 I allow users to send notifications out through my website. The notifications are working, however, I would like a way to actually confirm if the notification was sent out (in code), or if that is not possible at least confirmation that the curl worked, so I can show a message on my website that it either succeeded or failed. In my jquery post request, the status seems to always be "success", even if I provide an invalid API_ACCESS_KEY in my php (so it obviously is not sending the

how get message body when FCM notification message is tap?

旧城冷巷雨未停 提交于 2020-01-01 10:28:17
问题 When app is in background, the notification message is deliver by Notification, when the notification is tap, app is launch, how can i get the message body? the intent is this: Bundle[{google.sent_time=1470813025421, from=568540028909, google.message_id=0:1470813025865549%31bd1c9631bd1c96, collapse_key=com.google.firebase.quickstart.fcm}] no message body in intent, only message id! Thanks! 回答1: try this @Override public void onMessageReceived(RemoteMessage remoteMessage) { // TODO(developer):

MyFirebaseInstanceIdService didn't invoked why?

 ̄綄美尐妖づ 提交于 2019-12-31 07:36:48
问题 I have initiated MyFirebaseInstanseIdService in order to get token , directly i will show you the code : @Override public void onTokenRefresh() { super.onTokenRefresh(); String refreshedToken = FirebaseInstanceId.getInstance().getToken(); storeRegIdInPref(refreshedToken); sendRegistrationToServer(refreshedToken); Intent registrationComplete = new Intent(Config.REGISTRATION_COMPLETE); registrationComplete.putExtra("token", refreshedToken); LocalBroadcastManager.getInstance(this).sendBroadcast

Show Notification of Firebase Message onReceived when App is in Background Through api

ⅰ亾dé卋堺 提交于 2019-12-30 09:55:54
问题 I have built a chat application . It is working fine . both users can chat easily but where I get Stuck is if one user's app is at background and screen is off , user is unable to be notified of that received message. What I want now is in my application is when userA sends message to userB , and userB mobile is idle but application is running in background, userB can get notification about that message. and userB can open the chat activity and read the message . My firebase notification is

Limitations for Firebase Notification Topics

泄露秘密 提交于 2019-12-30 05:54:09
问题 I want to use Firebase notification for my android application and what i want to know is that is there any limitation for number of topics ? or for the number of users that can subscribe a topic ? For example can i have 10000 topics with 1 million users for each of them ? 回答1: There is no limitation on the number of topics or subscriptions. There was a limitation of 1 million subscriptions for the first year after topics was initially launched but that restriction was removed at this year's

Topic Won't Save in Firebase

◇◆丶佛笑我妖孽 提交于 2019-12-29 09:25:09
问题 I'm trying to let a user subscribe to a Topic and save it in Firebase. I've followed the guides from firebase.google.com and have added the following code when a user taps a button: [[FIRMessaging messaging] subscribeToTopic:@"/topics/sampletopic"]; Nothing happens though when I test clicking this button. I've added what is necessary to the podfile. What am I missing? edit: where does this even show up in Firebase? Where can I see my saved topics? 回答1: A topic is created automatically so long

Send URL in push notification Firebase

女生的网名这么多〃 提交于 2019-12-29 08:04:25
问题 My application is currently receiving Text, Image and both as a push notification from Firebase console. I want to send a URL too as a notification from my Firebase console to the app user. On clicking the notification. user shall be redirected to the specific URL, e.g. www.google.com .How can I do this in following code? package com.example.khan.andronotification; /** * Created by AndroidBash on 20-Aug-16. */ import android.app.NotificationManager; import android.app.PendingIntent; import

Firebase notification not received behind proxy

被刻印的时光 ゝ 提交于 2019-12-29 05:34:06
问题 Does Firebase not work behind proxies? I am making an Android app for the students of my institute. The app does not receive the notification when it is connected to the internet through the proxy servers. But as soon as I turn on the mobile data, notifications are received. How do I solve this problem? 回答1: Firebase doesn't work behind PROXIES. We have had this issue since Firebase launched. See here; https://github.com/firebase/firebase-tools/issues/36 and here; https://groups.google.com