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!!!
- user "cron jobs" in php file on server send automatic notifications.
- 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
Post a Comment