Hi,
I have created an app that needs PUSH notifications to work. I am still testing it on DEVELOPMENT push notifications.
I am subscribing the users on app's side correctly and I am trying to send push messages from the Appcelerator's Web Console. I tried sending to a specific channel and it is working fine, I tried sending to a specific user of a channel and it is also working fine.
However, I need the PUSH notifications to be sent from a web server file that I call on my website. I created one and I tried to send to the same user of the same channel as above and it worked fine, BUT when I tried to send it to the same WHOLE channel, IT DOES NOT WORK
The web server's file is the same as THIS (link) except I changed the following:
function sendPush() { var data = { channel: "#url.channel#" ,payload: {"sound": "default","alert": "this is an alert"} ,to_ids: "ddd2224a7eead20933333659" // IF I DO NOT ADD to_ids OR TYPE "everyone" THE PUSH NEVER ARRIVES }; var json_data = JSON.stringify(data); sdk.sendRequest('push_notification/notify.json', 'POST', data, pushCallback); }Any ideas on what I am doing wrong?
Or, could it be that Appcelerator does not allow us to send to channels outside the Web Console?
Any help will be appreciated!