php-pushwoosh icon indicating copy to clipboard operation
php-pushwoosh copied to clipboard

Implement attachment of additional help when an error is encountered

Open bgaillard opened this issue 10 years ago • 10 comments

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.

bgaillard avatar Apr 16 '15 07:04 bgaillard

:+1:

vinkla avatar Apr 16 '15 07:04 vinkla

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.

shaders avatar Apr 16 '15 15:04 shaders

Thanks. Btw, it didn't take several hours. Though, more then 30 minutes.

vinkla avatar Apr 17 '15 12:04 vinkla

And fixed :)

shaders avatar Apr 20 '15 15:04 shaders

Nice! What was wrong?

vinkla avatar Apr 20 '15 15:04 vinkla

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.

bgaillard avatar Apr 20 '15 16:04 bgaillard

@vinkla, simply forced cache wipe after reactivating sub. :)

shaders avatar Apr 20 '15 19:04 shaders

Okay, cool. Thanks for an awesome product btw, we've switched all our apps to it at work :)

vinkla avatar Apr 20 '15 19:04 vinkla

Thanks for your kind words. We are working really hard to make it even better! Stay tuned :)

shaders avatar Apr 22 '15 09:04 shaders

Cool. Can't wait :)

vinkla avatar Apr 22 '15 09:04 vinkla