Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement attachment of additional help when an error is encountered #14

Open
bgaillard opened this issue Apr 16, 2015 · 10 comments
Open
Assignees
Milestone

Comments

@bgaillard
Copy link
Member

Issue #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.
@vinkla
Copy link
Contributor

vinkla commented Apr 16, 2015

👍

@shaders
Copy link

shaders commented Apr 16, 2015

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.

@vinkla
Copy link
Contributor

vinkla commented Apr 17, 2015

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

@shaders
Copy link

shaders commented Apr 20, 2015

And fixed :)

@vinkla
Copy link
Contributor

vinkla commented Apr 20, 2015

Nice! What was wrong?

@bgaillard
Copy link
Member Author

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.

@shaders
Copy link

shaders commented Apr 20, 2015

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

@vinkla
Copy link
Contributor

vinkla commented Apr 20, 2015

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

@shaders
Copy link

shaders commented Apr 22, 2015

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

@vinkla
Copy link
Contributor

vinkla commented Apr 22, 2015

Cool. Can't wait :)

@bgaillard bgaillard modified the milestones: 1.0.6, 1.0.5, 1.1.7 Apr 26, 2015
@bgaillard bgaillard modified the milestones: 1.1.0, 1.0.7 Jun 18, 2015
@bgaillard bgaillard self-assigned this Jun 18, 2015
@bgaillard bgaillard modified the milestones: 1.2.0, 1.3.0 Nov 25, 2015
@bgaillard bgaillard removed this from the 1.2.0 milestone Nov 25, 2015
@bgaillard bgaillard modified the milestones: 1.4.0, 1.3.0 Dec 24, 2015
@bgaillard bgaillard modified the milestones: 1.5.0, 1.6.0, 1.7.0 Feb 15, 2016
@bgaillard bgaillard modified the milestones: 1.8.0, 1.9.0 Aug 2, 2016
@bgaillard bgaillard modified the milestones: 1.10.0, 2.0.0, 2.1.0 Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants