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

Regarding the device registration or installation.[New Comment] #122390

Open
shravankumarbj opened this issue May 10, 2024 · 4 comments
Open

Regarding the device registration or installation.[New Comment] #122390

shravankumarbj opened this issue May 10, 2024 · 4 comments

Comments

@shravankumarbj
Copy link

shravankumarbj commented May 10, 2024

Hi,

We use windows azure notification sdk for APNS for our app. We have a scenario that users who deleted app must not get push notification. Hence my backend developer is asking me whether we are registering or installing the token. Here is the background of the question. And below is the code we use to register device token in app.

MSNotificationHub.didRegisterForRemoteNotifications(withDeviceToken: token)

Request you to help us in this matter to know whether we are registering or installing.

Regards,
Shravana


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@TPavanBalaji
Copy link

@shravankumarbj
It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

@TPavanBalaji
Copy link

@shravankumarbj
We are going to close this thread if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

@shravankumarbj
Copy link
Author

Hi @TPavanBalaji

Apologies for late reply..

I shared it in the link the code snippet we used. But will share again.

`MSNotificationHub.setDelegate(self)
MSNotificationHub.setLifecycleDelegate(self)

    let hubOptions = MSNotificationHubOptions(withOptions: [.alert, .badge, .sound])
    
    // Start SDK which internally register for notifications.
    //This will call registerfornotification in delegate with token.
    //We will register to BFF from call to the method
    MSNotificationHub.start(connectionString: connectionString, hubName: hubName, options: hubOptions!)

MSNotificationHub.didRegisterForRemoteNotifications(withDeviceToken: token)`

This is code snippet we have used for registering token.

Please get back to me for clairifications.

Thanks,
Shravana

@shravankumarbj shravankumarbj changed the title Regarding the device registration or installation. Regarding the device registration or installation.[New Comment] May 17, 2024
@TPavanBalaji TPavanBalaji reopened this May 22, 2024
@TPavanBalaji
Copy link

@shravankumarbj
Thank you for bringing this to our attention.
I've delegated this to content author, who will review it and offer their insightful opinions.

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

No branches or pull requests

3 participants