Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[ExposureNotifications] Crash on Nearby GetStatusAsync method #1094

Open
@nc-kano

Description

Repro steps:
await NearbyClass.GetExposureNotificationClient(Application.Context).GetStatusAsync()

Expected:
Collection of ExposureNotificationStatus

Actual:
Crash because there is a cast from collection to single Enum. It shoud be casted to AbstractCollection instead of ExposureNotificationStatus

Additional:
EN api should not use the native device API to check the bluetooth/location status. Nearby API should be used instead to get the whole list of possible issues instead of getting only one status that can cover up all other issues. Nearby EN status provides 13 options, Xamarin.EN only 6 (and only 4 are used on Android)
https://developers.google.com/android/reference/com/google/android/gms/nearby/exposurenotification/ExposureNotificationStatus

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions