Skip to content

AndroidChannel fails to reconnect after block #8850

@litclimbing

Description

@litclimbing

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions