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

Is Azure notification hub ios supporting registration of liveActivity tokens? #152

Open
harshit090891 opened this issue Aug 2, 2024 · 0 comments

Comments

@harshit090891
Copy link

I am trying to integrate live activity for our app but not sure how can we register the tokens through our app on azure through the SDK.

The following code works fine for registration on normal APNS token but while registering the same for live activity it throws an error:

let token = self.stringWithDeviceToken(deviceToken: deviceToken)
let deviceTag = "device:".appending(token)
let tags = Set([deviceTag])
debugPrint(deviceTag)
let hub = self.getNotificationHub()
hub.registerNative(withDeviceToken: deviceToken, tags: tags) { [weak self] error in
if error != nil {
debugPrint("Error registering for notifications: (error!.localizedDescription)")
} else {
self?.channel?.invokeMethod("onToken", arguments: deviceTag)
}
}

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

1 participant