push-notification
How does Facebook Messenger clear push notifications from the lock screen if you’ve read them on desktop?
See the Multitasking Enhancements and the silent push notifications in particular. Using the silent push you can notify your app that new content is available and also download that content and/or set the badge number for example without displaying the notification in the “Notification Center”. You’ll have to set the UIBackgroundModes with the remote-notification value … Read more
iOS – Push notification alert is not shown when the app is running
I used code like this in my application delegate to mimic the notification alert when the app was active. You should implement the appropriate UIAlertViewDelegate protocol method(s) to handle what happen when the user taps either of the buttons. – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { UIApplicationState state = [application applicationState]; if (state == UIApplicationStateActive) { … Read more
Chrome push notification – how to open URL adress after click?
I am guessing you are in a Service Worker context, because that’s where Push Notifications are received. So you have the self object to add a event listener to, that will react to a click on the notification. (Place this code in your sw.js file, which is your Service Worker script.) self.addEventListener(‘notificationclick’, function(event) { let … Read more
iOS 13 – silent push notifications are no longer reliable
iOS 13 – silent push notifications are no longer reliable
Android Push Notification without using GCM
A few things to get your started: MQTT / Paho The Paho project provides open-source client implementations of MQTT and MQTT-SN messaging protocols aimed at new, existing, and emerging applications for Machine‑to‑Machine (M2M) and Internet of Things (IoT). http://www.eclipse.org/paho/ https://developer.motorolasolutions.com/docs/DOC-2315 AndroidPN This is an open source project to provide push notification support for Android. A … Read more
Callback Method if user declines Push Notification Prompt?
In iOS 7, when the system’s push notification prompt appears, the app becomes inactive and UIApplicationWillResignActiveNotification fires. Similarly when the user responds to the prompt (pressing either Yes or No), the app becomes active again and UIApplicationDidBecomeActiveNotification fires. So you can listen for this notification, and then hide your loading screen. Note: While the prompt … Read more