Detect Huawei app is uninstalled from phone

I’m having difficulty figuring out if the user has deleted my app from their Huawei phone when sending a Push.

I’m looking at the push docs, I do not see any error code for this case. Also, looking at the sample app that Huawei has given, I can’t see it there either.

Does anyone know exactly what I need to look for when sending a push to Huawei to detect if an app is deleted from the phone?

>Solution :

One gets posted a receipt state with value 2, when the app isn’t installed anymore.

If the app does not exist after the message is successfully sent to the device, the app has been uninstalled.

My ReceiptStatus.php would feature these values, but not yet implemented.

Leave a Reply