Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to programmatically unregister a device for push notification?

Just wondering if this is actually possible. So I can stop all notifications kind of like how notification center has the option to stop all notification.

I don't believe this is possible, but wondering what you might think.

like image 663
Joe Aikman Avatar asked Mar 22 '13 18:03

Joe Aikman


People also ask

Can you cancel a push notification?

You can disable push notifications on Android by going into the Settings > Notifications options. Similar to iOS, Android lets you turn off push notifications for individual apps or use a 'Do not disturb' mode.

Can we automate push notifications?

Fortunately, you can set repeating notifications with PushEngage. Repeat notifications are scheduled and automated push notifications for a recurring event. You can set them up once, specify a schedule, and you're done.

What is MoEngage push notification?

MoEngage stitches together all channels seamlessly and complements them with features like Dynamic Product Messaging, Advanced Analytics, Intelligent Delay Optimization, and Push Amplification. Arjya Nathvani.

What is opposite of push notification?

Unlike push notifications, in-app messaging allows you to reach the user when they are already engaging with your app.


2 Answers

[[UIApplication sharedApplication] unregisterForRemoteNotifications] should be used, in Objective-C.

UIApplication.shared.unregisterForRemoteNotifications() in Swift.

like image 108
Nirav Bhatt Avatar answered Sep 20 '22 19:09

Nirav Bhatt


The push notifications are sent from your server... so you should implement such a method yourself and remove or disable the device in the database on your server where you store the active devices.

If you only disable them locally on your device your server will still send messages until you get notification from the feedback service.. which you should check...

like image 36
Bastian Avatar answered Sep 19 '22 19:09

Bastian