Le Li
unread,Oct 12, 2011, 12:46:48 PM10/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to apns-php
I am trying to insert pushTokens in the feeback into a database. Here
is the sample function code:
public function getFeedbacks(){
// Instanciate a new ApnsPHP_Feedback object
// Connect to the Apple Push Notification Feedback Service
$this->feedback->connect();
$aDeviceTokens = $this->feedback->receive();
if (!empty($aDeviceTokens)) {
//get the array of device tokens and update the database
accordingly
$this->log("feedback: Recieved Device Tokens, updating db.");
}else{
$this->log("feedback: No Tokens Recieved");
}
// Disconnect from the Apple Push Notification Feedback Service
$this->feedback->disconnect();
$this->log("feedback: Deactivating tokens on db");
if (!empty($aDeviceTokens)) {
$this->log("feedback:DB insertion! <br />");
$this->DBinsertion($aDeviceTokens);
}
}
After getting feedback when it calls $this-
>DBinsertion($aDeviceTokens), it gives the error:
info: 'Tue, 11 Oct 2011 13:54:13 -0400' ApnsPHP[2422]: 'INFO:
Disconnected.'
info: [Tuesday 11th of October 2011 01:54:13 PM] FeedbackSystem:
feedback: Deactivating tokens on db<br>
info: [Tuesday 11th of October 2011 01:54:13 PM] FeedbackSystem:
feedback:DB insertion! <br /><br>
info: 'Tue, 11 Oct 2011 13:54:13 -0400' ApnsPHP[2422]: 'INFO: Parent
shutdown, cleaning memory...'
info: 'Tue, 11 Oct 2011 13:54:13 -0400' ApnsPHP[2601]: 'INFO: Parent
process 2422 died unexpectedly, exiting...'
Anyone knows why? Thanks