Safari Push 0.7 doesn't work
-
Hi,
The new version of the plugin does not work.
Registration works well but I do not receive push.I tested on a clean installation of wordpress and a new database.
I installed the version 0.6.5 over, then it worked well
-
which push wasn’t working? Was it when you send a push from the settings page, or automatically when publishing a new post?
From the settings page.
I did not try publishing with a new post
was there an error?
did you try posting to all or just a single device?To all !
But I only have one device registered in this new website
Was there a message below after you clicked the push button?
No messages !
and If I try with the direct link, it does not work:
but I have this message : 0 device(s) notified
and I not received a push
For a specific device it’s work :
I have this message : 1 device(s) notified
and I received a push
i honestly have no idea… The tests you’ve done are completely sensible. The _only_ difference in the code between the two requests is that the first one does “SELECT * FROM push” and the second does “SELECT * FROM push WHERE token=token”.
In other words, if the second method works, the first one should as well.
The only thing I can think of is that the first request is somehow incorrectly detecting a token in the URL.
Can you try temporarily changing the code:
function send_payload($handle, $deviceToken, $payload) { $apnsMessage = chr(0) . chr(0) . chr(32) . pack('H*', str_replace(' ', '', $deviceToken)) . chr(0) . chr(strlen($payload)) . $payload; return fwrite($handle, $apnsMessage); }to
function send_payload($handle, $deviceToken, $payload) { echo $deviceToken."\n"; $apnsMessage = chr(0) . chr(0) . chr(32) . pack('H*', str_replace(' ', '', $deviceToken)) . chr(0) . chr(strlen($payload)) . $payload; return fwrite($handle, $apnsMessage); }and see if that shed any light onto the issue?
It’s not work!
Message : 0 of 0 device(s) notified
I have the latest commit anf latest version of plugin (0.7.1)
The issue you have seems to not be related to the plugin. For some reason your push service is saying that there are no records in the push table in your mysql database.
Do you see a count of registered devices at the bottom of the plugin options page?
Just after the title “Push Subscribers” at the bottom of the plugin options page, I get this message:
“Retrieving information …”
—
The push for all devices work, there is just an error in your link :
not :
No “/” between “push” and “?”
and i have : 1058 of 1058 device(s) notified
If I send a push from the plugin, it does not always work (one or all devices)
when I published an article, push works !
The problem just happens with the manual push
Hmm, there’s no trailing / added by the push request via the plugin that I can see, but what I’ll do is try to trap for this in the push service.
try the latest version of the push service.
It’s done!
It does not work if I send push manually from the plugin settings
The topic ‘Safari Push 0.7 doesn't work’ is closed to new replies.