Implement attachment of additional help when an error is encountered
Issue https://github.com/gomoob/php-pushwoosh/issues/13 describes an error message This feature is available for Premium accounts only returned by Pushwoosh when the Pushwoosh subscription ended.
As @vinkla indicated in the issue re-activating the subscription takes several hours, so developers will receive a message to activate their premium account even if it is already activated.
The Puhswoosh support indicates that it usually takes up to a half hour before it kicks in.
It could be great to be able to attach additional informations to the php-pushwoosh responses when an error is encountered and this error is not presice enough.
For example we could do something like that :
if(!$response->isOk()) {
// Display the HTTP status code
echo $response->getStatusCode();
// Standard error message returned by Pushwoosh
echo $response->getStatusMessage();
// The previous error message gives a clue but its not precise enough
// So we ask the php-pushwoosh library if it has more indications about our
// error
echo $response->getStatusMessageHelp();
}
The third echo could display something like.
The Pushwoosh servers indicates your Premium account subscription is expired. If you reniewed your subscription please be aware that re-activating the subscription could take several hours.
:+1:
Hi,
As @vinkla indicated in the issue re-activating the subscription takes several hours, so developers will > receive a message to activate their premium account even if it is already activated.
Pushwoosh team is here :)
That shouldn't really happen. It was a bug that was fixed, I have suspicion that it crawled back somehow. We are going to check this out.
Thanks. Btw, it didn't take several hours. Though, more then 30 minutes.
And fixed :)
Nice! What was wrong?
Hi @shaders and thanks for the quick fix !
I think we'll leave this issue opened because it could be useful later for other kind of instructions.
@vinkla, simply forced cache wipe after reactivating sub. :)
Okay, cool. Thanks for an awesome product btw, we've switched all our apps to it at work :)
Thanks for your kind words. We are working really hard to make it even better! Stay tuned :)
Cool. Can't wait :)