Quantcast
Viewing latest article 1
Browse Latest Browse All 8

Android Cloud Push Notification - How to set up a channel?

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!


Viewing latest article 1
Browse Latest Browse All 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>