Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove the current NotificationHub iOS? #129

Open
GuillermoJimenezM opened this issue Apr 12, 2022 · 1 comment
Open

How to remove the current NotificationHub iOS? #129

GuillermoJimenezM opened this issue Apr 12, 2022 · 1 comment

Comments

@GuillermoJimenezM
Copy link

I subscribe to the notification hub in the device like this:

MSNotificationHub.start(connectionString: connectionString!, hubName: hubName!, options: hubOptions!)

How can I clear(remove) that current installation from the device?

I already tried UIApplication.shared.unregisterForRemoteNotifications()

Setup (please complete the following information if applicable):

  • OS: iOS 15.4
@Tolo789
Copy link

Tolo789 commented Feb 24, 2023

Same issue here, also tried this code but I'm still receiving notifications even if MSNotificationHub.isEnabled() is returning false..

MSNotificationHub.clearTags()
MSNotificationHub.setUserId("")
MSNotificationHub.setEnabled(false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants