Got invalid token(8) when sending messages to both tls://gateway.apple.com and ssl://gateway.apple.com. The certificate was created a few minutes ago.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Sending messages queue, run #1: 1 message(s) le
ft in queue.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: STATUS: Sending message ID 1 custom identifier: unse
t: 106 bytes.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: ERROR: Unable to send message ID 1: Invalid token (8)
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Disconnected.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Trying tls://gateway.push.apple.com:2195...
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Connected to ssl://gateway.push.apple.com:2195.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Sending messages queue, run #2: 1 message(s) le
ft in queue.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: WARNING: Message ID 1 [custom identifier: unset] has
an unrecoverable error (8), removing from queue without retrying...
I do receive the device token from the NSApplication callback. Is it able to send notifications to Mac-Developer-ID-Distribution App or ONLY the Mac-App-Store App?
Got invalid token(8) when sending messages to both tls://gateway.apple.com and ssl://gateway.apple.com. The certificate was created a few minutes ago.
Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Sending messages queue, run #1: 1 message(s) le ft in queue. Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: STATUS: Sending message ID 1 custom identifier: unse t: 106 bytes. Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: ERROR: Unable to send message ID 1: Invalid token (8) Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Disconnected. Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Trying tls://gateway.push.apple.com:2195... Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Connected to ssl://gateway.push.apple.com:2195. Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: INFO: Sending messages queue, run #2: 1 message(s) le ft in queue. Wed, 18 Nov 2015 16:59:37 +0800 ApnsPHP[32638]: WARNING: Message ID 1 [custom identifier: unset] has an unrecoverable error (8), removing from queue without retrying...
I do receive the device token from the NSApplication callback. Is it able to send notifications to Mac-Developer-ID-Distribution App or ONLY the Mac-App-Store App?