firebase-cloud-messaging

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

Push Notifications are delivered but didReceiveRemoteNotification is never called Swift

China☆狼群 提交于 2019-12-29 01:59:27
问题 I have successfully implemented push notifications in my two related apps via FCM and while trying to implement some logic to increment badge number on receiving the notification. I realized that didReceiveRemoteNotification delegate method is not called at all as I don't get any prints out of it, but I do get prints from willPresent notification and didReceive response . So setting UIApplication.shared.applicationIconBadgeNumber in didFinishLaunchingWithOptions has no effect, but setting in

How to send notification to a Topic

陌路散爱 提交于 2019-12-29 01:57:05
问题 I want a code to send notification from one device to multiple devices on a specific topic and I want to show that notification on devices who subscribe to that topic? I will use firestore to store data and store tokens and also use Firebase messaging to send notifications 回答1: You can subscribe to a topic using firebase_messaging and the FirebaseMessaging.subscribeToTopic: FirebaseMessaging().subcribeToTopic('topic_name'); You can send notifications to a topic using either the Firebase

Failed to resolve: play-services-tasks

烂漫一生 提交于 2019-12-28 05:49:32
问题 I have been tryong to add FCM to my android application for almost 48 hours now. I am keep on failing with these two errors on Android Studio. I have tried all the solutions in this post. Still I couldn't fix it. I want firebase cloud messaging to be integrated in my app. So I did the followings. Created an app in the firebase console Included the .json config file Added the SDK implementation 'com.google.firebase:firebase-messaging:17.0.0' (In the app level gradle) apply plugin: 'com.google

Android: Subscribe to Firebase Cloud Messaging(FCM) Topic

有些话、适合烂在心里 提交于 2019-12-28 05:37:31
问题 According to Firebase cloud messaging documentation, for subscribing a user to a topic I need to call FirebaseMessaging.getInstance().subscribeToTopic("news"); In my application, I need all users to be subscribed to my cloud messaging topic. Since return value is void , the question is how can I understand that subscription was successful? Is it a bad practice to call subscribeToTopic each time my application starts? 回答1: 1. How can I understand that subscription was successful? Edit: You

FCM Push notifications do not work on iOS 11

佐手、 提交于 2019-12-28 04:12:36
问题 I use Firebase as a backend. I also use FCM as one of the provided features from Firebase. FCM worked well in iOS 10, but after switching to iOS 11, push notifications stopped coming to user devices, and I myself did not receive any push notifications sent from the cloud functions or the Notification section in the Firebase Console. How to fix this problem? Update: I sent several push notifications from Firebase Notifcations, but they do not come. // MARK: - Push notification extension

Firebase Cloud Messaging - Send message to all users

谁说胖子不能爱 提交于 2019-12-28 03:10:15
问题 I'm new using the Firebase Cloud Message. I built an IOS app to receive push notifications. The app works fine. I send messages from the Firebase console and they're displayed correctly. Now I`m trying to build an web api to allow my customer to send the push messages (without accessing the firebase console). Studying the documentation here I realized that I've always to have a "to", meaning a group, topic or device id. My question is: can I send a message to all devices (like I can do in the

Firebase messaging NoSuchMethodError.zzUr exception

一笑奈何 提交于 2019-12-28 01:27:07
问题 i am trying to integrate FCM to android project as it's written in Firebase documentation. My app's gradle: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' ... compile 'com.android.support:multidex:1.0.0' compile 'com.android.support:support-v4:20.0.0' compile 'com.google.firebase:firebase-core:9.2.0' compile 'com.google.firebase:firebase-config:9.2.0' compile 'com.google.firebase:firebase-messaging:9.0.2' compile 'com.google.firebase:firebase

Firebase onMessageReceived not called when app is in the background

て烟熏妆下的殇ゞ 提交于 2019-12-27 17:44:10
问题 I am using Firebase for our messaging service in our Android app. I have researched Firebase quite a bit and I understand that whether the app if running in the foreground or now will change the type of data received in the onMessageReceived method. What I am trying to accomplish is to parse the incoming data from the Remotemessage and do something different with it depending on custom tag. IE, if the Data Map contains a field called, "My_Custom_Tag", I want to completely override the

FCM notification not receiving

十年热恋 提交于 2019-12-25 18:47:12
问题 I have an application which will get FCM notifications.It recived fine on devices up to marshmellow.When I insatlled it on oreo device it getting toast which says notificaton channel is null.I searched on google and I found that Notification channels are required for receiving notifications on API above 26. I added a notification channel but it shows the toast again.No notification. My AppFirebaseMessagingService public class AppFirebaseMessagingService extends FirebaseMessagingService {