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
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:
Hi, you should follow OneSignal documentation for this: https://documentation.onesignal.com/docs/android-native-sdk#section--postnotification-
Your'e basically passing the same parameters as here: https://documentation.onesignal.com/reference#create-notification
data is responsible for the data you want to transfer.
data
I.E:
let data = arr // some array let contents = { 'en': 'You got notification from user' } OneSignal.postNotification(contents, data, playerId);
Sorry, something went wrong.
Thank you !
Hey there,
Does this library currently support headings parameter as outlined in OneSignal create notification documentation?
headings
No branches or pull requests
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: