immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.44k stars 452 forks source link

Is it able to send notifications to Mac-Developer-ID-Distribution App using ApnsPHP? #108

Closed mysteriouss closed 8 years ago

mysteriouss commented 8 years ago

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?

mysteriouss commented 8 years ago

ok, it isn't. But it's weird about the device token received.