firebase-cloud-messaging

Firebase Issues iOS 10.3 on Xcode 8.3 Swift 3 FCM notifications not working

a 夏天 提交于 2019-12-24 11:55:24
问题 I'm working on Xcode 8.3.2 for iOS 10.3.2 with Swift 3 , my project use firebase cloud messaging, when my p12 certificates expired, I updated my certificates p12 to p8 as suggested Firebase's documentation, but the push notifications stopped coming, yesterday when I used the console firebase to test, it was working but today no, the logs print me this as normal: 2017-05-30 10:13:23.932066-0400 lol[5576:1530669] WARNING: Firebase Analytics App Delegate Proxy is disabled. To log deep link

What is the correct syntax to send Firebase Cloud Messaging (FCM) to multiple topics via condition

ぐ巨炮叔叔 提交于 2019-12-24 11:27:19
问题 Simply I want to use the Google Cloud Functions to send notifications to devices that subscribe to a combination of topics. The documentation says: "'TopicA' in topics && ('TopicB' in topics || 'TopicC' in topics)" What I tried to do is: var topicsConditions = `'${type}' in topics && ('${area}' in topics || '${city}' in topics)`; // Send a message to devices subscribed to the provided topic. admin.messaging().sendToCondition(topicsConditions, notificationPayload) .then(function(response) { //

Firebase: How can I ensure compatibility with various versions of Google Play Services?

淺唱寂寞╮ 提交于 2019-12-24 10:47:34
问题 I want to incorporate messaging/Push notifications in my Android App and since FCM is the newest version recommended, I just checked the Firebase prerequisites and it says, Prerequisites A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 10.2.0 or higher The Google Play services SDK from the Google Repository, available in the Android SDK Manager The latest version of Android Studio, version 1.5 or higher But, it isn't so that all the devices running ICS will

Azure says my push notifications have all been sent on to FCM, but FCM hasn't received some of them

♀尐吖头ヾ 提交于 2019-12-24 10:45:13
问题 Sometimes notifications aren't received, but Azure gives back 'Enqueued' as the result of 'SendTemplateNotificationAsync'. I log everything in a database. I've checked the FCM registration token in the Google Play Console and there is no record of the notifications that didn't get received by the user (and there is a record of the ones that are received), yet Azure said they were 'Enqueued'. I checked the metrics graph in Azure Portal and the stats don't match up at all. Azure thinks they are

When an app is in background, onMessageReceived method is not firing

馋奶兔 提交于 2019-12-24 10:12:20
问题 Actually i need to show badge in app icon but i don't know how to get badge and why onMessageReceived not call when app is in background or app is not running. public class Custom_FirebaseMessagingService extends FirebaseMessagingService { private static final String TAG = "FirebaseMsgService"; String activityName; @Override public void onMessageReceived(RemoteMessage remoteMessage) { if (remoteMessage == null) return; if (remoteMessage.getNotification() != null) { Log.i(TAG, "Notification

Not receiving Firebase push notifications when app is open?

不想你离开。 提交于 2019-12-24 10:00:32
问题 I'm using google firebase with iOS swift for push notification. I'm receiving notifications while app is open in back ground or phone is locked. But when app is open not receiving any notifications. Following is my AppDelegate. Any help would be appreciate? import UIKit import UserNotifications import Firebase import FirebaseInstanceID import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow?

iOS FirebaseCloudMessaging Notifications not working in Debug / Test Flight nor Release

一曲冷凌霜 提交于 2019-12-24 10:00:07
问题 I have the notifications working in android without any issue , but in iOS I can't figure out what seems to be the problem. I have created the APN file and upload into Firebase iOS Configuration Both Team ID & App ID are correct - double checked The "Push Notifications" is both active in the Apple Developer & Xcode When the App starts a request by iOS is made to allow notifications I'm using firebase_messaging plugin and in my main.dart I put: @override void initState() { super.initState();

Firebase message, onMessage not being invoked

試著忘記壹切 提交于 2019-12-24 08:48:05
问题 This is how I am calling sending message: sendMessage() { var key = 'VERY LONG KEY -dffdADFDFD-vdfDafd'; var to = 'VERY LONG KEY -ADEWerew-vdfDafd'; var notification = { 'title': 'Portugal vs. Denmark', 'body': '5 to 1' }; fetch('https://fcm.googleapis.com/fcm/send', { 'method': 'POST', 'headers': { 'Authorization': 'key=' + key, 'Content-Type': 'application/json', }, 'body': JSON.stringify({ 'to': to, 'notification': notification, 'data': { 'message': 'example' } }) }).then(function

fcm subscribe to topic

穿精又带淫゛_ 提交于 2019-12-24 08:47:39
问题 I'm trying to use FCM to send notifications to all topic subscribers. First of all, I need to subscribe the user to a topic. What I do (I'm using JavaScript Firebase Cloud Messaging for web push notifications): 1) Get FCM instance var messaging = firebase.messaging(); 2) Get token messaging.getToken(); 3) Send token to server by ajax 4) Subscribe the client to a topic from a server https://iid.googleapis.com/iid/v1/IID_TOKEN/rel/topics/TOPIC_NAME So, my js code is smth like this: var

didReceiveRemoteNotification not working Swift

风流意气都作罢 提交于 2019-12-24 08:18:50
问题 import UIKit import Firebase import FirebaseInstanceID import FirebaseMessaging class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { FIRApp.configure() let settings: UIUserNotificationSettings = UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil) application.registerUserNotificationSettings(settings) application