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

Scheduled push notification

$
0
0

Hi All,

I am trying to send a scheduled push notification using Cloud.PushSchedules.create.

I have registered for the push notification, subscribed the channel.

My code is

Cloud.PushSchedules.create({
                    schedule : {
                        name : 'push schedule',
                        start_time : '2015-02-11T15:35:00',
                        recurrence : {
                            interval : 1,
                            end_time : '2015-02-11T15:35:00'
                        },
                        push_notification : {
                            payload : 'hello world',
                            channel : 'Rezopia_Reminders'
                        }
                    }
                }, function(e) {
                    if (e.success) {
                        Ti.API.info('Success! \n id: ' + e.push_schedules[0].id);
                    } else {
                        Ti.API.error('Error: ' + ((e.error && e.message) || JSON.stringify(e)));
                    }
                })

but getting an Error: Requested API endpoint does not exist. Check that you are using the correct GET, POST, PUT, or DELETE HTTP method.

Any help is highly appreciated. its really very urgent

Thanks in advance


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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