firebase-cloud-messaging

What to do with the INSTANCE_ID_EVENT action with Firebase 17.0.1?

戏子无情 提交于 2019-12-23 20:38:58
问题 So now that the FirebaseInstanceIdService service is deprecated I'm unsure what to replace it with. I previously had a service declared in the manifest like so: <service android:name=".fcm.FcmIdService"> <intent-filter> <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/> </intent-filter> </service> And the service itself: public class FcmIdService extends FirebaseInstanceIdService { @Override public void onTokenRefresh() { // Create notification channel.

Firebase messaging on android and permissions

雨燕双飞 提交于 2019-12-23 20:27:49
问题 I recently added firebase messaging to my android app and I noticed some new permissions required to my app at similar time, for example: android.permission.READ_PHONE_STATE I couldn't find anywhere in documentation, why is this permission required. I even tried to explicitly disable it in manifest ( tools:node="remove" ) and messaging still works for me. It's kinda messy and I want to use only as few permissions as I need for sake of my users. Is this permissions really needed by messaging

Is a server required for Firebase Cloud Messaging?

混江龙づ霸主 提交于 2019-12-23 18:28:01
问题 I am currently developing an Android app and I would like to include Firebase Cloud Messaging. I was planning to have a Raspberry Pi checking a website every 5 Minutes or so and sending push notifications when something changed. In the official documentation they say that I need an 'app-server' in order to send messages via Firebase. Does that mean I need to have my Raspi up and running as a server 24/7 and need a static IP / Domain for it? Or is it enough to have my Raspi send the message

Custom click on Ionic notification using Firebase

左心房为你撑大大i 提交于 2019-12-23 18:21:07
问题 I have been using ionic and FCM (Firebase Cloud Messaging) for notification. I get the notification on my app and now I have 2 issues. First, if its a normal notification like not with advanced options in Firebase Console > Notification , then it doesn't play any sound, but when it's data Notification, then it does play a sound. Second, I want to open a particular page of my app on notification click. So how do I do that? Note : I am using ionic not an ionic2. 回答1: First issue: We have sound

How to implement push notification for xamarin android

我与影子孤独终老i 提交于 2019-12-23 15:37:49
问题 I tried to follow the tutorial: Push notifications to Xamarin.Android (the iOS part works already) But I get the following error at build time: The "ProcessGoogleServicesJson" task was not given a value for the required parameter "ResStringsPath". ServiceToolStandard.Android What I have so far: I've created a firebase project FirebaseConsole: downloaded the google-services.json file copied the legacy server key Azure: created notification hub inserted the legacy server key Xamarin Forms App

android FCM enable/disable from application settings

这一生的挚爱 提交于 2019-12-23 15:07:29
问题 I've implemented Firebase Cloud Messaging in my android app. Is it possible to turn notifications off from my application settings screen? It was possible with old GCM as we have broadcast GcmReceiver and we could handle it ourselves. Now we have only FirebaseInstanceIdService and could handle it only when app is in foreground. How we can handle it when app is in background? Is it possible only to disable Firebase Cloud Messaging only for some category of notification inside app or this

onMessageReceived in android O not called when app in background

我怕爱的太早我们不能终老 提交于 2019-12-23 12:16:57
问题 I am sending data payload notifications from my server. here is example: url= "https://fcm.googleapis.com/fcm/send" { "to" : "userToken", "data" : { //some json here } } in such way i am successfully sending messages to users, even if app isn't running, in all pre Android O devices. But on Android O device, onMessageReceived not called when app is not launched... is there some new rules in O ? how it can be fixed? thanks! UPDATES This question is not about notifications, but about firebase

Cannot access zzbfm class file for com.google.android.gms.internal.zzbfm not found

我只是一个虾纸丫 提交于 2019-12-23 12:14:03
问题 I am migrating my Android app project from GCM to FCM . For this I use Firebase assistant tool in Android Studio and followed instructions from Google developer guide. Everything went fine and changed my app code for FCM according to Assistant tool. Now, its time to run and test app. And I got following strange error : cannot access zzbfm class file for com.google.android.gms.internal.zzbfm not found I am getting this error where I am using google maps and trying to set marker position. Here

Firebase API call with multiple topics in condition

拜拜、爱过 提交于 2019-12-23 11:56:50
问题 I am facing a tragic issue while calling FCM API:- In brief When I am calling the API with following: URL:-https://fcm.googleapis.com/fcm/send Content-Type:application/json Authorization:key=AAAA4Kkj8iw:APA91bE......vE4Hxg { "condition" : "'Software' in topics", "data":{ "title":"Title", "message":"Hello,Via Multiple Topics" } } It works Fine and I got the notification on device from which I have subscribed to topic "Software", But when I go for multiple topics and change the body to {

Are there any limitations for the FCM topics names?

风格不统一 提交于 2019-12-23 11:55:46
问题 I'm trying to find out if there are any limitations for the topic names for FCM. Managed to find info about the number of topics (no limitations), but nothing like length of topic name or allowed characters. 回答1: Yes, not all characters are allowed, having space between words is not allowed in topic names. From the docs: sending messages to a Firebase Cloud Messaging topic is very similar to sending messages to an individual device or to a user group. The app server sets the topic key in the