-
Notifications
You must be signed in to change notification settings - Fork 373
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
postNotification contents and data format #100
Comments
Hi, you should follow OneSignal documentation for this: Your'e basically passing the same parameters as here:
I.E: let data = arr // some array
let contents = {
'en': 'You got notification from user'
}
OneSignal.postNotification(contents, data, playerId); |
Thank you ! |
Hey there, Does this library currently support |
Hi,
i'm trying to user OneSignal.postNotification, but i didn't find an example for contents and data format:
OneSignal.postNotification(contents, data, player_id);
Do i need to set contents like { title: 'Title', message: 'Message' } ?
Thanks for your great work
The text was updated successfully, but these errors were encountered: