jeet0291 / apns-php

Automatically exported from code.google.com/p/apns-php
0 stars 0 forks source link

when I change my enviroment to PRODUCTION,i got error: Invalid token #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when I change my enviroment to PRODUCTION,i got error " Invalid token", but it 
works in sandbox enviroment?does anybody know the reason?
I am sure i used server_certificates_bundle_production.pem, not sandbox.

---------------------------------------------------------------
Thu, 27 Oct 2011 04:16:21 +0000 ApnsPHP[3904]: INFO: Trying 
ssl://gateway.push.apple.com:2195... Thu, 27 Oct 2011 04:16:21 +0000 
ApnsPHP[3904]: INFO: Connected to ssl://gateway.push.apple.com:2195. Thu, 27 
Oct 2011 04:16:21 +0000 ApnsPHP[3904]: INFO: Sending messages queue, run #1: 1 
message(s) left in queue. Thu, 27 Oct 2011 04:16:21 +0000 ApnsPHP[3904]: 
STATUS: Sending message ID 1 [custom identifier: unset] (1/3): 177 bytes. Thu, 
27 Oct 2011 04:16:22 +0000 ApnsPHP[3904]: ERROR: Unable to send message ID 1: 
Invalid token (8). Thu, 27 Oct 2011 04:16:22 +0000 ApnsPHP[3904]: INFO: 
Disconnected. Thu, 27 Oct 2011 04:16:22 +0000 ApnsPHP[3904]: INFO: Trying 
ssl://gateway.push.apple.com:2195... Thu, 27 Oct 2011 04:16:23 +0000 
ApnsPHP[3904]: INFO: Connected to ssl://gateway.push.apple.com:2195. Thu, 27 
Oct 2011 04:16:23 +0000 ApnsPHP[3904]: INFO: Sending messages queue, run #2: 1 
message(s) left in queue. Thu, 27 Oct 2011 04:16:23 +0000 ApnsPHP[3904]: 
WARNING: Message ID 1 [custom identifier: unset] has an unrecoverable error 
(8), removing from queue without retrying... Thu, 27 Oct 2011 04:16:24 +0000 
ApnsPHP[3904]: INFO: Disconnected.
-------------------------------------------------------------

Original issue reported on code.google.com by qinyejun...@gmail.com on 27 Oct 2011 at 4:46

GoogleCodeExporter commented 8 years ago
The production token is different from the testing token. Apple gives to the 
phone a production token only from the app that you download from the appstore 
so you can test your production environment only after the publication! :)

Original comment by marco.bi...@gmail.com on 27 Oct 2011 at 8:50

GoogleCodeExporter commented 8 years ago
Marco is right. Please feel free to reopen this issue if problem subsists.

Original comment by aldo.arm...@gmail.com on 27 Oct 2011 at 8:54

GoogleCodeExporter commented 8 years ago
When i run in using sandbox certificate it works fine, but when i use 
production certificate it is not working though i 'm using production 
certificate

Original comment by rai...@topofstacksoftware.com on 7 Apr 2012 at 10:53