firebase-cloud-messaging

Firebase cloud function always timeout in logs

时间秒杀一切 提交于 2020-01-06 05:45:10
问题 I am using code from this link: https://codelabs.developers.google.com/codelabs/firebase-cloud-functions/#9 and always I get timeout in logs for cloud function, here is a code: exports.sendPatrola = functions.database.ref('/test/tmp') .onUpdate((change, context) => { const original = change.after.val(); var payload = { data: { id: String(original.id), x: String(original.x), y: String(original.y), dat: String(original.dat) } }; var options = { priority: 'high', contentAvailable: true,

Does turning off FireBase swizzling affect analytics besides push receipts?

我只是一个虾纸丫 提交于 2020-01-06 03:37:25
问题 The Firebase cloud messaging documentation says that they swizzle some methods in order to get a push notification token and log receiving a push notification. In the FIRAnalytics documentation, some event names are reserved (see under logEventName:parameters: ), including in_app_purchase . This suggests that Firebase is automatically logging in-app purchases to their analytics, which seems difficult to do automatically without swizzling. Does Firebase swizzle in order to use these reserved

Firebase FCM with ReactJS and Webpack not working: We are unable to register the default service worker

♀尐吖头ヾ 提交于 2020-01-05 15:16:46
问题 Related question with pretty much the same issue: Firebase FCM React project issue - firebase-messaging-sw.js wrong type? Answers in this question or any other have not worked for me, below is a screenshot of the project tree with firebase-messaging-sw.js file in it, since adding it has been a occuring suggestion to fix this issue. I would like to know if I am just doing it wrong or why I am not able to register the sw for the firebase to use. Original error from developer tools console:

firebase set background message handler

血红的双手。 提交于 2020-01-05 13:30:12
问题 I have been trying to customise notification message in front end, i.e if a field is not set send in notification, I am trying to add it. importScripts('https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/5.0.4/firebase-messaging.js'); var config = { apiKey: "x", authDomain: "y", databaseURL: "z", projectId: "a", storageBucket: "b", messagingSenderId: "1" }; firebase.initializeApp(config); const messaging = firebase.messaging();

Xamarin.Forms FCM OnRefereshToken Method not called in release mode Android Device

这一生的挚爱 提交于 2020-01-05 09:29:26
问题 I have Implemented a Xamarin Pushnotification using FCM and my code looks like // This service handles the device's registration with FCM. [Service] [IntentFilter(new[] { "com.google.firebase.INSTANCE_ID_EVENT" })] public class ZCFirebaseIIDService : FirebaseInstanceIdService { #region override methods public override void OnTokenRefresh() { var refreshedToken = FirebaseInstanceId.Instance.Token; App.DeviceToken = FirebaseInstanceId.Instance.Token; } #endregion } Also I have added all

MyFirebaseMessagingService is not working but notification is shown

天大地大妈咪最大 提交于 2020-01-05 07:23:08
问题 I receive notifications from Firebase but my classes I've created not working (not involved in the actions). Seems like they are shown by default. public class MyFirebaseMessagingService extends FirebaseMessagingService { @Override public void onMessageReceived(RemoteMessage remoteMessage) { String title = remoteMessage.getNotification().getTitle(); String message = remoteMessage.getNotification().getBody(); String click_action = remoteMessage.getNotification().getClickAction(); Intent intent

How to pass Firebase Auth token to webView and register for notifications on Android

我怕爱的太早我们不能终老 提交于 2020-01-05 06:55:08
问题 I have a Firebase WebApp which provides info to a user. In addition to the app I need to send push notifications via Firebase Cloud Messaging to users with an Android App. Goal: The user should have one login to the app which both registers them for notifications and loads the WebApp through a WebView. Problem: I can't find an approach which achieves this with a single login. In every case I need to login once for the native app and then once again through the webView. First, some references

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

Firebase Cloud Messaging Refresh Token

核能气质少年 提交于 2020-01-05 05:28:06
问题 I am using this Cordova plugin for Firebase in FCM for my PhoneGap project, but I got no idea how I can implement the login, sign up, and log out so that I can send a push notification to a specific username when the user logs-in. My idea is when the user logs-in, it will generate a new token and store the new token with the username in MySQL database and on user logout, it will update new token. But in the documentation, there is no way to refresh the token by using JavaScript. Thanks. 来源:

Firebase statistics

∥☆過路亽.° 提交于 2020-01-05 04:51:08
问题 I have an Android Application that is not on Google play. I have implemented Firebase to send messages from my server to the app. It works well but on the Firebase console I do not see statistics. I would like to know if my account is within limits once I go live with this update. I see that there are some statistics on Google play, but my app is not on Google play. What are the exact limits for Firebase messages and how does it work? -Simultaneous connections - 100 (if there are more, the