push-notification

Firebase messaging/mismatched-credential

空扰寡人 提交于 2020-02-20 07:26:36
问题 I'm trying to send notifications to a specific device with Firebase but am getting the following error: {"r": {"results":[{"error":{"code":"messaging/mismatched-credential","message":"The credential used to authenticate this SDK does not have permission to send messages to the device corresponding to the provided registration token. Make sure the credential and registration token both belong to the same Firebase project."}}],"canonicalRegistrationTokenCount":0,"failureCount":1,"successCount"

push notification in Android 1.6

不打扰是莪最后的温柔 提交于 2020-02-16 09:07:09
问题 I want to know that is it possible to implement the push notification in Android 1.6. If it possible then how can I solve this? 回答1: Yes this is possible using MQTT Library use this url use this website to learn more if you don't get it give me your mail i'll give you this. 来源: https://stackoverflow.com/questions/3437568/push-notification-in-android-1-6

push notification in Android 1.6

余生颓废 提交于 2020-02-16 09:05:26
问题 I want to know that is it possible to implement the push notification in Android 1.6. If it possible then how can I solve this? 回答1: Yes this is possible using MQTT Library use this url use this website to learn more if you don't get it give me your mail i'll give you this. 来源: https://stackoverflow.com/questions/3437568/push-notification-in-android-1-6

push notification in Android 1.6

心已入冬 提交于 2020-02-16 09:05:22
问题 I want to know that is it possible to implement the push notification in Android 1.6. If it possible then how can I solve this? 回答1: Yes this is possible using MQTT Library use this url use this website to learn more if you don't get it give me your mail i'll give you this. 来源: https://stackoverflow.com/questions/3437568/push-notification-in-android-1-6

Why userNotificationCenter didReceive is not fired?

萝らか妹 提交于 2020-02-03 01:52:48
问题 This is a part of my code. I want to use UNUserNotificationCenter and UNUserNotificationCenterDelegate to handle notification events. This code catches the notification event when the app is in a foreground state. But "didReceive" is not fired for a background state. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { UNUserNotificationCenter.current().delegate = self application

Why userNotificationCenter didReceive is not fired?

蓝咒 提交于 2020-02-03 01:51:32
问题 This is a part of my code. I want to use UNUserNotificationCenter and UNUserNotificationCenterDelegate to handle notification events. This code catches the notification event when the app is in a foreground state. But "didReceive" is not fired for a background state. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { UNUserNotificationCenter.current().delegate = self application

GCM push notifications cause 502 Bad Gateway

五迷三道 提交于 2020-02-01 03:31:08
问题 I have an .Net windows service that sends GCM push notifications via https://android.googleapis.com/gcm/send. The service periodically sends batches of approximately 10,000 messages at a rate of 10 / second. With each batch, 5 - 10 of the messages will cause a "502 Bad Gateway" response. The messages that generate the 502 always go through with a second try. Is this normal? Could I be sending too many messages too quickly? 回答1: According to the GCM guide, all 5xx error codes should be treated

How do iOS Push Notifications work?

戏子无情 提交于 2020-01-27 08:52:47
问题 How do iOS "push" notifications get delivered to a particular device without that device needing to poll a server? For example, let's say I have received a new message on Facebook. Facebook notifies Apple that my device should receive a notification as such. But how does Apple know which device/IP to push the message to? 回答1: It was too much for me to put in a comment so. From the documentation. Apple Push Notification service (APNs) propagates push notifications to devices having

How do iOS Push Notifications work?

感情迁移 提交于 2020-01-27 08:52:27
问题 How do iOS "push" notifications get delivered to a particular device without that device needing to poll a server? For example, let's say I have received a new message on Facebook. Facebook notifies Apple that my device should receive a notification as such. But how does Apple know which device/IP to push the message to? 回答1: It was too much for me to put in a comment so. From the documentation. Apple Push Notification service (APNs) propagates push notifications to devices having

cannot find symbol class NotificationManagerCompat

扶醉桌前 提交于 2020-01-25 21:31:23
问题 I am trying to build a notification method that would result in a notification appearing on the locked screen when a particular beacon is detected. My understanding is that I need to include .setVisibility(0) in the following code: public void showNotification(Beacon beacon) { Resources r = getResources(); int random = (int)System.currentTimeMillis(); Notification notification = new NotificationCompat.Builder(this) .setSmallIcon(android.R.drawable.ic_popup_reminder) .setContentTitle("Beacons