On api push how to get the channel audience.

Hi,

I am using the cordova plugin. On my app DB, I am saving for each user his channel id after getting it by the "UAirship.getChannelID", so later on i can send him a message.

On the server post api it requires to set the audience key value: 

{
"audience": {
"ios_channel": "9c36e8c7-5a73-47c0-9716-99fd3d4197d5"
}

so first I should get his devices? what method should i use to get his devices? 

Thanks.

Didn't find what you were looking for?

New post

Comments

1 comment

  • If you have the channel id, there are a few ways to get the device info:

     

    Comment actions Permalink
    1

Please sign in to leave a comment.