Skip to content

How to cleanly pin a network on Android #8286

@yschimke

Description

@yschimke

WorkManager provides a required network for scheduled jobs with network constraints

https://developer.android.com/reference/androidx/work/WorkerParameters#getNetwork()

Using this specific network is possible with a custom Dns and SocketFactory. However the naive implementation would probably result in defeating connection pooling in some cases.

Is there a supported pattern for this, if Dns and SocketFactory both support equality checks, would pooling be correctly retained?

cc @swankjesse

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions