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
How can I access in func didReceive(_ notification: UNNotification) { the additional data from the payload?
func didReceive(_ notification: UNNotification) {
The text was updated successfully, but these errors were encountered:
@appcelerate You should setup a OSHandleNotificationActionBlock block which will give you a Object where this has been parsed for you. See initWithLaunchOptions for an example of setting one up.
Sorry, something went wrong.
Closing due to inactively. Feel free to reopen if you have more questions on this callback.
@appcelerate if you still need it:
guard let customData = notification.request.content.userInfo["custom"] as? Dictionary<String,Any> else { return } guard let oneSignalAdditionalData = customData["a"] as? Dictionary<String,String> else { return }
Remember! Additional data is always [String: String]
No branches or pull requests
How can I access in
func didReceive(_ notification: UNNotification) {
the additional data from the payload?
The text was updated successfully, but these errors were encountered: