[aerogear-dev] AeroGear Push Notification

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[aerogear-dev] AeroGear Push Notification

Pratik Aroo
Hi,

I am using aerogear UPS on openshit, I wanted to know if Push
notification can be sent to specific device by its Device Token, if yes
then can you provide an demo code for the same. Thanks


Regards,
Pratik A.
_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] AeroGear Push Notification

Matthias Wessendorf
Hi,

not directly, but you could use (on the client) the given device-token (or registrationID) and use that as the alias. Here is a snippet for iOS/Swift to perform that in the device registration:

...
clientInfo = deviceToken
...

the full example (expect the above line) for iOS is here:

and on the sender API, use the actual alias filed, when sending. 

Note you also need to store the device token in that case, so that your app can use it when the send is triggered

HTH,
Matthias


On Sat, Nov 21, 2015 at 9:30 AM, Pratik Aroo <[hidden email]> wrote:
Hi,

I am using aerogear UPS on openshit, I wanted to know if Push
notification can be sent to specific device by its Device Token, if yes
then can you provide an demo code for the same. Thanks


Regards,
Pratik A.
_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] AeroGear Push Notification

Matthias Wessendorf
clientInfo.alias that is ;)

On Mon, Nov 23, 2015 at 11:44 AM, Matthias Wessendorf <[hidden email]> wrote:
Hi,

not directly, but you could use (on the client) the given device-token (or registrationID) and use that as the alias. Here is a snippet for iOS/Swift to perform that in the device registration:

...
clientInfo = deviceToken
clientInfo.alias that is ;) 
...

the full example (expect the above line) for iOS is here:

and on the sender API, use the actual alias filed, when sending. 

Note you also need to store the device token in that case, so that your app can use it when the send is triggered

HTH,
Matthias


On Sat, Nov 21, 2015 at 9:30 AM, Pratik Aroo <[hidden email]> wrote:
Hi,

I am using aerogear UPS on openshit, I wanted to know if Push
notification can be sent to specific device by its Device Token, if yes
then can you provide an demo code for the same. Thanks


Regards,
Pratik A.
_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--



--

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev