ios - Phonegap Build - "PushPlugin" server notification -


(ios) trying send push notifications server. right have plugin

<gap:plugin name="com.phonegap.plugins.pushplugin" />  // config.xml 

and js file

 <script type="text/javascript" src="pushnotification.js"></script> // index.html 

and code is:

var pushnotification;  document.addeventlistener("deviceready", function(){     pushnotification = window.plugins.pushnotification;       }); 

i got certificates.

but how send request server? in case want check server every minute , see if there news user...

any appreciated

///////////////////

i found answer!!!

  1. user "cron jobs" in php file on server send automatic notifications.
  2. follow tutorial http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/

you don't have request server every minute. when server has news user, send notification user's device, server.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -