push-notification

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))

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

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 send data over HTTP(S) to an Android application

给你一囗甜甜゛ 提交于 2020-06-28 08:06:32
问题 I am very new to Android App development and I have to execute a very simple use case. I have a service and I want it to send some data to my android app. This data for simplicity can be a JSON object with a text field like so: {"text": "Hello world"} And in the app, when this message is received, I want to display "Hello world". So every time a request is sent from the service, I want the message to be updated on the app. How can I accomplish this? All the documentation available on the

NotificationManager.notify creating notifications that are *initially* missing contentText

拈花ヽ惹草 提交于 2020-06-28 07:25:10
问题 When posting a push notification to the Notifications List/Bar, the .contentText and the .number are initially not displayed (.ticker, .icon and .contentTitle display fine). However, after posting another notification (with a different ID), when the first one gets bumped down in the list, it then displays the content text and number. And then the new one is missing the text, and so on. Since I'm using the millisecond timer to create a unique ID, I don't think it's possible for me to be

How to delete delivered notifications from notification service extension

和自甴很熟 提交于 2020-06-28 06:13:07
问题 We are using notification service extension to display 2 types of notifications: call and cancel. The former displays message "You are being called". The second one will display "You were called". When it comes to the latter notification, we want to remove all previously created call notifications still active in notification center. This must work when app is on background and terminated as well. For that, we could use UNUserNotificationCenter.current().removeDeliveredNotifications . However

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