[ExposureNotifications] Crash on Nearby GetStatusAsync method #1094
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