Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

PushNotification.showchannels() in node.acs

$
0
0

Hi, I have my summarized code as follows, but cannot proceed due to some errors. need help.

var ACS = require("acs-node"); ACS.init(<app-key>');

ACS.PushNotifications.showChannels({ name: 'myChannel' }, function (e) { if (e.success) { Ti.API.info("Android:" + e.devices.android_counts); Ti.API.info("iOS:" + e.devices.ios_counts); } else { console.log('Error:\n' + ((e.error && e.message) || JSON.stringify(e))); } });

When I am using this code I am getting an error "TypeError: Object has no method 'showChannels' ". On debugging, ACS.PushNotifications is giving an "<abnormal return>". I need some suggestions to proceed with the code.

Thank You.


Viewing all articles
Browse latest Browse all 8068

Trending Articles