ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Push notification Send automatically

Hi,
Can u give me some steps how to send Push message periodically to devices after some time span ?
Example : i want to notify user that there is update in application and the application updates every 1 hour. How would i be able to send push message to user about update?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Push notification Send automatically

You can send Push notification from any application that supports REST http://docs.appery.io/documentation/p...
You can also use Appery.io server code: http://docs.appery.io/documentation/b...

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Push notification Send automatically

Yea thanks for this, but i dont get an idea where should i write this curl script ?

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Push notification Send automatically

In the link which is send
In server code i am able to understand what it does.
But where should i write send method ? in server code ?
and from where should i call PN.send(...) ? will i be able to call on button click ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push notification Send automatically

Hi Ishani,

For now, this can't be done in server code. You can create an admin mobile application that sends Push notification with a particular period.

Here is an example of a periodic function call:
precode//set interval
var intervalID = setInterval(function(){alert("Interval reached");}, 5000);

//remove interval
clearInterval(intervalID);/code/pre

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Push notification Send automatically

Hi thanks for it.
I have confusion. If i want to send push message on button click will i be able to do that ? will i be able to call PN.send(...) on button click ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push notification Send automatically

Ishani,

Yes. Please note it should be in admin app.

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Push notification Send automatically

ok, :) just to clarify i have created app having admin rights also for this i have followed http://docs.appery.io/documentation/b... this document.
so if i invoke same rest service example on button click i will be able to send notification right..!!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push notification Send automatically

Yes. This is what you do to send them.

Return to “Issues”