Closed yixiaoyx closed 3 years ago
Hi @yixiaoyx, Thanks for reporting this issue. We'd be glad to assist.
Looking into the logs, it appears the device lost its Internet connection:
Connect exception: (0) - java.net.UnknownHostException
An UnknownHostException
occurs when the device cannot resolve a DNS query (due to lacking Internet connectivity) or due to Doze mode.
If you are sure that the device is connected to a healthy Internet connection when this occurs, please see this article on how to workaround Doze mode: How can I send notifications to Android devices in Doze / power saving mode?
I'm experiencing an issue using Pushy Flutter SDK on Android that sometimes Pushy will encounter a connection exception and couldn't reconnect, and notifications sent after that will not be received. My phone is not in battery saving mode when this happened.
Here is what's in logcat: (the numbers and tokens are redacted)
After that last line there was no more logs printed. It looks like Pushy did not reconnect, because when I then send a notification the app didn't receive it, nothing was printed in logcat, and it's shown as pending delivery on the dashboard.