We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
}
}
The text was updated successfully, but these errors were encountered: