Hi, I am new to Titanium Appcelerator, and have been working on cloud push notification for Android app. So far the app can receive notifications, but I need to set up different channels for different users.
I have in my code:
function defaultSubscribe(){ Cloud.PushNotifications.subscribe({ channel: 'test', device_token: deviceToken, type: 'android' }, function (e){ if (e.success) { alert('Subscribed for Push Notification!'); }else{ alert('Error:' +((e.error && e.message) || JSON.stringify(e))); } }); }But the channels are all 'N/A' in the ACS app push logs. I've been searching for some answers but no luck yet...
Can anyone give me a brief tutorial how this should be done properly? Many thanks!
1 Answer
Did you only test push from admin console, if you test from admin console, there is no channel, it sends to all devices that have subscribed. that's why you see n/a
Your Answer
Think you can help? Login to answer this question!