firebase-cloud-messaging

Setting small icon in Notification above lollipop version

混江龙づ霸主 提交于 2020-07-08 07:10:26
问题 I have created heads up notification. As like below, NotificationCompat.Builder notification = new NotificationCompat.Builder(this, channelId) .setContentTitle("Message") .setContentText("Recieved Successfully") .setContentIntent(pendingIntent) //.setColor(ContextCompat.getColor(this, R.color.green)) .setSmallIcon(R.drawable.notification_icon) .setDefaults(Notification.DEFAULT_ALL) .setContentIntent(pendingIntent) .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))

Setting small icon in Notification above lollipop version

给你一囗甜甜゛ 提交于 2020-07-08 07:09:14
问题 I have created heads up notification. As like below, NotificationCompat.Builder notification = new NotificationCompat.Builder(this, channelId) .setContentTitle("Message") .setContentText("Recieved Successfully") .setContentIntent(pendingIntent) //.setColor(ContextCompat.getColor(this, R.color.green)) .setSmallIcon(R.drawable.notification_icon) .setDefaults(Notification.DEFAULT_ALL) .setContentIntent(pendingIntent) .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))

How to send push notification from Rest API

∥☆過路亽.° 提交于 2020-07-08 00:41:12
问题 I have created my App in Firebase and configured for cloud messaging. When I am sending the notification from Firebase Console, device gets the notification but if I try to send via Rest API (Using PostMan). Then notification not coming to device but the response is showing as Success. Here is my PostMan request URI - https://fcm.googleapis.com/fcm/send Header: Content-Type:application/json Authorization:key=MY_SERVER_KEY Body: { "data": { "title": "Firebase", "detail": "I am firebase" }, "to

Does the APNs authentication key work for all my app ids?

喜你入骨 提交于 2020-07-06 08:20:04
问题 I have one app and it's dev version. I have 2 Firebase projects: myApp and myApp-dev. I have 2 Apple App ID: myApp and myApp-dev. I have 1 Authentication key that I've uploaded to both of my firebase projects. Is this right? Does one auth key work for all my apps? 回答1: " One APNS to rule them all , One APNS to find them, One APNS to bring them all and in the darkness bind them." The answer is unfortunately yes . You can use one APNS for all of your IOS apps. Be careful while using it ! 回答2: I

Does the APNs authentication key work for all my app ids?

久未见 提交于 2020-07-06 08:18:33
问题 I have one app and it's dev version. I have 2 Firebase projects: myApp and myApp-dev. I have 2 Apple App ID: myApp and myApp-dev. I have 1 Authentication key that I've uploaded to both of my firebase projects. Is this right? Does one auth key work for all my apps? 回答1: " One APNS to rule them all , One APNS to find them, One APNS to bring them all and in the darkness bind them." The answer is unfortunately yes . You can use one APNS for all of your IOS apps. Be careful while using it ! 回答2: I

How to schedule push notifcations for react native expo?

限于喜欢 提交于 2020-07-03 13:16:08
问题 I am trying to send push notifications to a user at a scheduled time. Say they set the date for an event and they want to be notified 30 minutes before, that is when I would like to send them a notification. I am using firebase as my backend and the project is built with expo. I am curious how I would use expo's notification system if I am using firebase cloud messaging because it says I need separate permission from firebase (I already have the expo token for each user). I have looked into

send FCM to a particular version of your android app

ε祈祈猫儿з 提交于 2020-07-03 07:33:48
问题 how to send FCM (Firebase Cloud Message) to a particular version of your android app? for example:- my app's latest version is 2.0 and i only want to send notifications to devices having version 2.0. 回答1: If you're using the Notifications composer in the Firebase console to send your messages, you can target based on app version. Choose "User segment" under the "Target" step, select your app, and click "and" on the right side: In the new line that pops up, you can select "Version" and pick an

send FCM to a particular version of your android app

99封情书 提交于 2020-07-03 07:33:37
问题 how to send FCM (Firebase Cloud Message) to a particular version of your android app? for example:- my app's latest version is 2.0 and i only want to send notifications to devices having version 2.0. 回答1: If you're using the Notifications composer in the Firebase console to send your messages, you can target based on app version. Choose "User segment" under the "Target" step, select your app, and click "and" on the right side: In the new line that pops up, you can select "Version" and pick an

How to disable FCM push notification using toggle button?

无人久伴 提交于 2020-06-28 03:35:08
问题 I'm develop mobile app push notification using xamarin and firebase. I want to put a toggle button on my application to turn off the alarm. I tried a lot but i could not solve it. There are many words I want to say, but I can not speak English and I am using Google Translator. Please help me. I tried disable push notification using fcm topic named 'allowPushNotification'. When turn on toggle button, subscribed topic, and unsubscribed topic when turn off toggle button. But when i send to push

FirebaseError: Messaging: We are unable to register the default service worker

和自甴很熟 提交于 2020-06-27 17:07:27
问题 Hello Help me pls....... Advansed thanks for reply ................................. Notification permission granted. ; FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script. (messaging/failed-serviceworker-registration). <script src="https://www.gstatic.com/firebasejs/5.5.3/firebase-auth.js"></script> <script> MsgElem = document.getElementById("msg") TokenElem =