-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Milestone
Description
I'm having issues with Firestore (which uses gRPC) not connecting after a device is locked and was able to track it down to here.
public void onAvailable(Network network) { |
It seems that the network callback needs to override the onBlockedStatusChanged() function and reconnect when the blocked parameter is false.
I'm seeing onAvailable() only called when my app initially starts but onBlockedStatusChanged() is called with true when it has been idle for a while and false when it comes back up. This was tested on Android 12.
Metadata
Metadata
Assignees
Labels
No labels