Skip to content

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

@bgaillard

Description

@bgaillard

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions