Skip to content

No need of isAvailable when doing registerNetworkCallback #2

@RameshbabuJaga

Description

@RameshbabuJaga

Due this two time connectivity status got reported back. Can you tell me why do you have the below part in registerNetoworkCallback

if (isAvailable(context)) { context.sendBroadcast(getNetworkAvailabilityIntent(true)); } else { context.sendBroadcast(getNetworkAvailabilityIntent(false)); }

I hope this wont be required by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions