I have a small question about push notification sync between devices.
For instance, I'm building an iOS and an OSX app.
Both of them support push notifications and I send notifications to both devices at the same time.
Is it possible to "hide/dismiss" the push notification (or change badge) on an OSX device if I opened a push notification on my iOS device?
Like iMessages does.
I can't find any Apple API or third party service that does somthing like that.
Thanks for your help.
Does your app communicating with any server? If yes you can send information like "user-saw-content" to the server then send another push notification to cancel others notifcations if necessary.
Related
i have wordpress website and create own PWA based on wordpress.
now i want to use push notification on my web app!
how can send push notification to my ios users?
[resolved in android pwa]
Unfortunately, push notifications are not yet available on IOS.
Right now, Safari only supports push notification on Mac.
If you want push notifications on IOS, you have to develop native app.
There is a workaround,the Wise Notifications plugin
It takes 5 min to setup and the website visitors can subscribe with 2 taps maximum. It uses a notifications hub app to make it possible.
While not as easy to subscribe (if the visitors don't have the hub app already installed) as usual web push notifications, it is the only quick way to reach your iOS audience.
The alternative is for you to create a native/hybrid iOS applications, publish it to the AppStore, implement Apple Push Notifications in the app and server and send notifications via APNS (Apple Push Notification service). This requires a quite a lot of effort (time or money or both).
Currently, push notifications are supported (not yet) on IOS.
Safari only is the only browser in IOS, others use webview (based on Safari) with just a UI.
I'm working a feature which will observe the notification from a server and then do some actions. But the notification won't send immediately when I did some changes in the server. So I want to find a way that can send notification or command from other devices or pc to iOS app to test function immediately?
You can use Easy APN Provider for testing your push notifications.
On iOS, we can register for push notifications using the registerForRemoteNotifications method on UIApplication.
I want to create a watchOS 2 app that will work even if my watch is not connected to my phone (but is connected to Wi-Fi). I would like to send push notifications from a server to the watch directly. Is there a way to do this?
If so, what are the equivalent of these methods in a watchOS 2 extension?
application.registerForRemoteNotifications
application(:, didRegisterForRemoteNotificationsWithDeviceToken:)
application(:, didFailToRegisterForRemoteNotificationsWithError:)
application(:, didReceiveRemoteNotification:)
If not, what are my other options?
Currently there is no way to directly get notification from server on watch. As mentioned in Notification Essentials for watch
Apple Watch displays local and remote notifications only if the
containing iOS supports them. For information about how to support
local and remote notifications in your iOS app, see Local and Remote
Notification Programming Guide.
This also mentioned that
When one of your app’s local or remote notifications arrives on the
user’s iPhone, iOS decides whether to display that notification on the
iPhone or on the Apple Watch
Now there are some scenrio in this, if your phone is active and notification arrives, it will be received on phone. but if phone is locked and watch is active and then notification arrived it will be displayed on watch.
It is also mentioned in Apple Push Notification Service Doc that
Apple Push Notification service (APNs) is the centerpiece of the
remote notifications feature. It is a robust and highly efficient
service for propagating information to iOS (and, indirectly, watchOS),
tvOS, and OS X devices.
I wanted to know how to be able to read and get the contents of another app's push notification in iOS. Such as a push notification from Facebook Messenger, or Twitter.
I know this is possible because that is exactly what the Pebble Smartwatch iOS app does. It intercepts the push notifications of the iPhone and sends them to the smartwatch over Bluetooth.
Devices such as the Pebble, use the ANCS service with Bluetooth. An app cannot directly access the notifications for/from other apps.
How would you send a notification to the lock screen of an iPhone from an app when something occurs?
That kind of notification is known as a push notification (different from NSNotification). Here's a tutorial on how to get up and running with Apple Push Notifications (APNs). There are also tools out there to streamline the process, such as Parse.com and Push.io, though I cannot speak to the quality of either of those products.