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

Does this support iOS 10 push notifications #35

Open
otymartin opened this issue Sep 11, 2017 · 8 comments
Open

Does this support iOS 10 push notifications #35

otymartin opened this issue Sep 11, 2017 · 8 comments

Comments

@otymartin
Copy link

@flovilmart
For instance, I noticed I cant specify "Title", "subtitle", "body" in my push data. I can only pass in an "alert" message.

@jjdp
Copy link

jjdp commented Sep 11, 2017

you need to edit the adapter for your own params if you want access to more options by onesignal's api

@otymartin
Copy link
Author

@jjdp
ahh man. can you give me an example, i really dont know javascript at all :(

@jjdp
Copy link

jjdp commented Sep 12, 2017

Something like this

if(data['subtitle']) {
    post['subtitle'] = data['subtitle'];
    delete data['subtitle'];
}

just pass your property in data for

Parse.Push.send({
    where: query,
    data: data,
}, { useMasterKey: true });

@otymartin
Copy link
Author

@jjdp thank much appreciated :)

@otymartin
Copy link
Author

@jjdp

Maybe im inputting the wrong param but i tried borrwoing your syntax because I want bold titles in my notifications however it doesnt work. any idea?

if(data['title']) {
    post['title'] = data['title'];
    delete data['title'];
}```

@jjdp
Copy link

jjdp commented Sep 16, 2017

read one signal's params in the link

@fasa23
Copy link

fasa23 commented Feb 7, 2019

I think your OneSignalPushAdapter.js should have something like this:

   if (data['title']) {
    post['headings'] = { en: data['title'] };
    delete data['title'];
   }

I tried it but I had no luck, I contacted One Signal support and they told me "this module is very outdated and we don't officially support it."

Any ideas?

@otymartin
Copy link
Author

@fasa23 I use it from the client instead, no server side integration needed. I thought push notifications had to go through my own servers but not the case with oneSignal which is great.

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

3 participants