firebase-cloud-messaging

Why not getting Android Firebase FCM registration token?

余生颓废 提交于 2019-12-24 08:08:51
问题 I'm trying to send a push notification to my app from my app server but i'm not getting the FCM registration token through FirebaseInstanceIdService . Here i'm using Genymotion personal edition emulator.is that problem with my emulators API? here is FirebaseInstanceIdService public class FcmInstanceIdService extends FirebaseInstanceIdService { @Override public void onTokenRefresh() { String recent_token = FirebaseInstanceId.getInstance().getToken(); SharedPreferences sharedPreferences =

Invalid Registration id FCM

微笑、不失礼 提交于 2019-12-24 07:59:01
问题 When I execute the code below I get: Invalid registration token I get the token from MYSQL database. I checked that the data returned matches with the database. Everything seems perfect, but I can't find out my error. How can I fix or debug this code: function send_android_notification($registration_ids, $message) { //print_r($registration_ids); //print_r($message); //exit; define("GOOGLE_API_KEY", "AAAABoqI4ac:APA91bEMNO81wwRARcQftyBhIBU1U4Bq6rLKeRZDLOPAQu-9fk8y_6bOsZWnw2JEq

Token generation not working call after migrating from GCM to FCM android project

心已入冬 提交于 2019-12-24 07:57:39
问题 I have converted a project from GCM to FCM but onTokenRefresh() function not call. I have followed this link : https://developers.google.com/cloud-messaging/android/android-migrate-fcm I have completed follow step Add Firebase project and add application with SHA1 key Remove all code of GCM from my android project Add FCM code FCM Code: In manifest.xml <service android:name=".Commonclass.MyFirebaseMessagingService"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" />

How to clear/delete Google Cloud Messaging Queue?

旧时模样 提交于 2019-12-24 07:53:00
问题 Situation is that I sent a notification from my server to 1 million users. Request is in queue at GCM. After triggering the notification from server I found that notification is not correct and it should not be sent. I want to stop it. At that point of time how I can clear/delete GCM queue? Any suggestion would be really helpful. 来源: https://stackoverflow.com/questions/41500042/how-to-clear-delete-google-cloud-messaging-queue

Set up “firebase javascript” to use with “ionic serve”

回眸只為那壹抹淺笑 提交于 2019-12-24 07:49:13
问题 I want to use Firebase Javascript, in an Ionic 2 project so I can develop the Push Notification logic that I want to apply , and test it in a browser , by using the CLI "ionic serve" . I've followed the step as explain in the doc under node.js / ES2015: I did a CLI "npm install --save firebase" to add it to my project. And then at the top of one of my project service I did: import [regular Ionic 2 and Angular 2 import stuffs]; import * as firebase from 'firebase'; @Injectable() export class

Can Firebase Cloud Messaging platform be used to send messages to Java SE receivers/clients?

冷暖自知 提交于 2019-12-24 07:42:58
问题 We're looking for a solution that enables us to communicate from our app servers (Java) via Firebase Cloud Messaging (or, I suppose some similar platform) to our Java SE-based client software. Those clients are running on desktop computers. I've done this from our servers=>android, and realize that mobile is the intended use case for Firebase, but has anyone tried something similar? Can it be done? Can anyone point me in the direction of some resources to guide me? Or possibly suggest

Receive all the push notifications when devices are offline

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 04:35:13
问题 I'm creating an iOS and Android native app, using Firebase for sending push notifications. It's working fine, but when I switch off my devices and send some notifications, after starting the devices, I just receive the last one sent for iOS, and the same for Android. Is there a way to receive all the push notifications even when the devices are offline and they're started? 回答1: Referencing a couple of references: iOS: Apple Push Notification service includes a Quality of Service (QoS)

send notification when new child is added to Firebase database

我们两清 提交于 2019-12-24 02:22:19
问题 I am using Firebase database in my app, and I need to send a notification to the Admin when a new order is added to the database "new child added to the database". I found something called Firebase cloud messaging but I don't know how to use it. Any help, please? 回答1: The Firebase Cloud Messaging is used to send push notification to a devices or a group of devices.The thing that you want to achive can be implemented by using Cloud Functions for more details HERE Codelab You need to specify a

Multi line title in push notification for iOS

為{幸葍}努か 提交于 2019-12-23 23:19:22
问题 I'm integrating FCM for an app which has both iOS and Android version. Currently, for iOS, I want to send title in multiple lines. How do I do this? I'm trying out using Firebase console to test. But nothing seems to work for me. I tried with these \n <br/> \\n \r\n as suggested in this post. But nothing really worked. I basically want the first 2 lines of the notification to be in bold. Any help much appreciated. 回答1: The 1st line in bold you see is a notification Title, the second the

firebase_messaging not customizing notification when app is not in foreground

一曲冷凌霜 提交于 2019-12-23 21:19:42
问题 I need to group notifications from firebase about messages comes from users. Firebase push notification is grouping achieved by using **flutter_local_notification** plugin. This is done inside onMessage() callback set up during Firebase configuration. But when app is not in foreground this grouping and other customer styling can not be done. I had given "tag" field in notification section of Firebase push notification. This will show only one notification according to the tag . But i need to