firebase-cloud-messaging

Notification not coming via Firebase console

我的未来我决定 提交于 2019-12-23 05:07:47
问题 I have tried every possible solutions for above issue but still not getting notification to my device via Firebase Console. Please suggest. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { FIRApp.configure() if let remoteNotification = launchOptions?[UIApplicationLaunchOptionsRemoteNotificationKey] as? NSDictionary { self.handleNotification(remoteNotification as! [NSObject : AnyObject]) } let settings:

Push notification works incorrectly when app is on background or not running

天大地大妈咪最大 提交于 2019-12-23 04:54:36
问题 I am using Firebase Cloud Messaging to send push notifications. Here is my FirebaseMessageService : public class FireBaseMessageService extends FirebaseMessagingService { @Override public void onMessageReceived(RemoteMessage remoteMessage) { Log.e("TAG", "From: " + remoteMessage.getFrom()); Log.e("TAG", "Notification Message Body: " + remoteMessage.getData().get("CardName")+" : "+remoteMessage.getData().get("CardCode")); sendNotification(remoteMessage.getNotification().getBody()); } private

Firebase CloudFunctions: Querying Nodes

孤者浪人 提交于 2019-12-23 04:22:38
问题 I am exploring Cloud Functions with FCM to do a push notification to my iOS app device. I have the following structure and I am listening for people who registered to an event. I want to extract the eventHost so that I can go to my users node to find the userUID and eventually his deviceID, and send a push notification to him. { "events" : { "XXX" : { "eventHost" : "YYY", //<-- How do I get this node? "eventID" : "XXX", "registered" : { //<-- Listening for this node "ASKDJHAIUCHA" : { "name"

Q: Change notification icon in Android Studio

我与影子孤独终老i 提交于 2019-12-23 04:12:38
问题 I configured the application icon (Image 1), but the notification icon (Notification sent via Firebase) shows a gray rectangle (Image 2). What is the procedure for changing the notification icon image (Image 2) via Android Studio 2.3 or via script? Manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.studioshow.studioshow"> <uses-permission android:name="android.permission.INTERNET" /> <application android

Delete a Firebase Android app, then use its SHA1 and package name in another project

允我心安 提交于 2019-12-23 04:02:03
问题 I'm using Firebase for its Firebase Cloud Messaging service. I have 2 account, each of which has a project with and Android App. Account A -> Project A -> Android App A Account B -> Project B -> Android App B I need to delete Project A and migrate everything to Project B (Android and iOS apps, nothing else). Here's what I've done so far: deleted Android App A created Project B created Android App B I now need to add the SHA1s, used in Android App A, in Android App B, but I always get an error

Push notification not working with FCM

允我心安 提交于 2019-12-23 02:50:57
问题 I am trying to get push notifications using Firebase in my Android app. The problem is when the app is in the foreground, I receive the notification and onMessageReceived() is called, however when I am on the background, I don't receive any notification and the onMessageRecieved isn't called. What am I doing wrong? Manifest.xml <service android:name=".notifications.MyFirebaseMessagingService"> <intent-filter android:priority="2147483647"> <action android:name="com.google.firebase.MESSAGING

android - Firebase Notification Push Notification not working

烈酒焚心 提交于 2019-12-23 02:39:26
问题 UPDATE Unfortunately, I didn't solve this issue and what I did is create a new project. Fortunately my new project works. One thing I noticed from my newly created project, when I am sending notification messages, some messages didn't arrive to my device. So I think its my Internet connection problem (my idea only). I am trying to implement basic receiving of Push Notifications using Firebase. I based this tutorial: https://www.codementor.io/android/tutorial/send-push-notifications-to-android

Im not getting push notifications in production in iOS 10

本小妞迷上赌 提交于 2019-12-23 02:17:23
问题 Im using Firebase messaging and I was able to get notifications in development mode, but as soon as I archived my bundle and upload it to App Store I'm not getting notifications in test flight. Because I have a previous version of the app with iOS 7, i can see the notifications are arriving to that device,(so I suppose my profiles and certificates are ok) but not on thee device using iOS 10, and the test flight built. 来源: https://stackoverflow.com/questions/43306068/im-not-getting-push

Store token for FCM

坚强是说给别人听的谎言 提交于 2019-12-23 01:21:39
问题 I am trying to store my token in my cloud DB. I am going to use this token later in a cloud function in order to send a notification to a user that has been added as a friend. Pushing the device token however does not work because the user is unauthorized. I can't save it after they are authorized because the token is generated when the app is installed. private static final String TAG = "FirebaseIDService"; @Override public void onTokenRefresh() { // Get updated InstanceID token. String

Not receiving APNs when out of app

末鹿安然 提交于 2019-12-23 01:05:21
问题 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,