Check notification status of my App

Comments

3 comments

  • Avatar
    Pushwoosh

    Just found this one after posting : https://community.pushwoosh.com/questions/1852/push-status-only-available-after-app-relaunches

    Is there any way to actually call a method to get the status?

    OOPS : Acidentally put this as an answer below but could not delete it. If Admins could delete it, that would be great.

  • Avatar
    Pushwoosh

    Finally figured out how to resolve my issue : https://community.pushwoosh.com/questions/1852/push-status-only-available-after-app-relaunches/1855

    However, it doesn't answer the general question of : Is there a method to call to check status of notifications?

  • Avatar
    Roman Solomakha

    Hello,

    Please note that if push notifications was rejected after a user had been using your app for some time Pushwoosh unregisters this device from pushes. In case a user rejects to receive pushes right upon installation, Pushwoosh will not know about it because device would not register for pushes. I think that the "getUnregisteredDevices" API method would be useful for your case. With this method you can retrieve a list of unsubscribed devices.

    A POST request with the following code should be sent to

    https://cp.pushwoosh.com/json/1.3/getUnregisteredDevices

    {
     "request":{
     "auth": "API_ACCESS_TOKEN",
     "application":"APPLICATION_CODE"
     }
    }
    

    And the response from the server will look as follows:

    {
       "status_code":200,
       "status_message":"OK",
       "response":{
         "devices":{
           "1":[{"push_token":"test_purpose_record","datetime":"2014-05-22 12:59:14"},
                 {"push_token":"test_purpose_record","datetime":"2014-05-22 12:48:21"}
            ],
           "3":[{"push_token":"APA91bGxH6YG2iFXjnm5qd-m2TuNNMhj-ErA21_oWh5Dc4HgGIlMqcg6RQhIvVP_edqvQ4Vi_cHw1Sku-NhzumaYecz6zFI4I_aSgAUFwpBrQOA7aWR4pXlqUVFeSejKDunNeiU1ZQ59hQRiqm4nOqWkLjhVd6Dy7g","datetime":"2014-05-22 12:42:21"}
            ]
         }
       }
    }
    

    Once requested this list will be removed from the logs and the next similar request will provide the next pack of tokens. One response contains up to 1000 tokens.

    I hope that this info would be helpful for you.

Please sign in to leave a comment.