We're facing some very random behaviour with regards to notifications. We're trying to achieve the following:
- Receive an order on our external system
- Place an order via APIs
- Create a notification for the android app on the Clover machine
- Receive the notification using AppNotificationReceiver
- Fire a print using an intent service
We have a small android application in place which follows the push notification example from github. Till a while ago, everything was working fine, we were getting the notifications and orders were getting printed. But now, something has gone wrong. I test the code at 2 places, at my emulator and devkit(mini 2) both.
Devkit - When I try and fire a print using the devkit, nothing happens, absolutely nothing. No notifications received.
Emulator - When I sideload the app in emulator, I get the notification, although I get permission issue at times, and at times, there's no issue at all and I get all the logs correctly, which means if it were a devkit order printing would've worked fine. I get notifications always at least on the emulator.
Here is a logcat for both, the emulator and the devkit - https://gist.github.com/hitesh-ramani/f9ab9f3c9e19a5ea1afab58875789555
FYI - This is all in sandbox env.
Can you please tell us how to debug this? What are the steps to follow here?