Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cron weirdness
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul Tomlinson  
View profile  
 More options Apr 13 2012, 4:15 am
From: Paul Tomlinson <easedownthisr...@googlemail.com>
Date: Fri, 13 Apr 2012 01:15:53 -0700 (PDT)
Local: Fri, Apr 13 2012 4:15 am
Subject: Cron weirdness
Dear all,

Loving easyapns, but I don't understand how the notifications are
working.....please help!

I set the cron up at 12pm yesterday but notifications were sent to all
3 registered devices at 21.23pm, 21.27pm, 8.56am & 8.57am. Why?

Here's my cron:

 - */5 * * * * nice /usr/bin/php -f http://xyz.co.uk/pushservice/apns.php?fetch

> /usr/local/apns/apns.log 2>&1 &

And here's the code in my apns.php:

$apns->newMessage();
$smiley = html_entity_decode('&#128064;',ENT_NOQUOTES,'UTF-8');
$apns->addMessageAlert("You just got the {$smiley}LOOK{$smiley}!",
'PLAY');
$apns->addMessageBadge(5);
$apns->addMessageCustom('acme1', 'bar');
$apns->addMessageCustom('acme2', array('bang', 'whiz'));
$apns->addMessageSound('chime');
$apns->queueMessage();

// SEND ALL MESSAGES NOW
$apns->processQueue();

I really don't understand what's happening & any help would be
appreciated.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »