immuni-app / immuni-app-android

Official repository for the Android version of the immuni application
GNU Affero General Public License v3.0
860 stars 146 forks source link

[BUG] Exposure notifications not enabled if bluetooth is ON #146

Closed matteosecli closed 2 years ago

matteosecli commented 4 years ago

Describe the bug

Cannot enable exposure notifications if bluetooth is on.

To Reproduce

  1. Install Immuni from the Play Store
  2. Ensure bluetooth is ON
  3. Open the app and complete the initial steps
  4. Press on "Allow"
  5. You see the error message "Exposure notifications are not enabled"
  6. Close the app
  7. Turn bluetooth OFF
  8. Open the app again and start over by completing the initial steps
  9. Press on "Allow"
  10. Exposure notifications are enabled

Expected behaviour

Exposure notifications are enabled when the bluetooth is on, or at least the user gets notified to turn it off.

Screenshots

Smartphone (please complete the following information):

Additional context

Possibly related: #145


Update: it seems that steps 6. and 8. are not necessary; after you're stuck on the "Allow" screen, you can just turn off your bluetooth via the drop-down system menu and then press "Allow" again, it should work.

grausof commented 4 years ago

Seems like a common problem in the Huawei world!

matguidi commented 4 years ago

I confirm this bug on my Honor 10 View, Android version 9.1.0.364.

DrSchottky commented 4 years ago

Same on an LG G3 (Android 6, PS version 20.18.17) I have no COVID-19 notifications settings in the device settings menu.

Same behavior on a Galaxy S3 (Lineage OS 14.1/Android7.1.2, PS 20.18.17)

RoBYCoNTe commented 4 years ago

I can confirm the same behavior on Huawei P smart. After seeing this post I’ve disabled Bluetooth and restarted the app. The configuration process was completed successfully, but after closing the app and reopening it I’ve received another warning about the stopped service.

heyteacher commented 4 years ago

Same on an LG G3 (Android 6, PS version 20.18.17) I have no COVID-19 notifications settings in the device settings menu.

  • If I start the app with BT turned on it says I don't have exposure notifications enabled
  • If I start the app with BT turned off it starts (at least on the UI) but, if I close and reopen it, it says that the service is off and I can't turn in because I don't have exposure notifications enabled

Same behavior on a Galaxy S3 (Lineage OS 14.1/Android7.1.2, PS 20.18.17)

Same behavior HUAWEI P10 Light (Android 8.0.0)

lo97 commented 4 years ago

Same on an LG G3 (Android 6, PS version 20.18.17) I have no COVID-19 notifications settings in the device settings menu.

  • If I start the app with BT turned on it says I don't have exposure notifications enabled
  • If I start the app with BT turned off it starts (at least on the UI) but, if I close and reopen it, it says that the service is off and I can't turn in because I don't have exposure notifications enabled

Same behavior on a Galaxy S3 (Lineage OS 14.1/Android7.1.2, PS 20.18.17)

Same behavior HUAWEI P10 Light (Android 8.0.0)

Same on my P10 light

DrSchottky commented 4 years ago

I can confirm that, at least for me, the service ins't really working even if the UI says so (after starting app with BT disabled). I dumped the BLE traffic with external hardware and I don't see any adv packet coming from those devices, while all's good with my Pixel 3A. I think that there's something wrong with PS, because even if I have the same version installed on all my phones only a few have Notification Exposure settings in device settings.

I also tried with latest PS public beta (20.15.15) and nothing changed

fabioalbani commented 4 years ago

Same for me on my Huawei p8 lite 2017. It seems that the play services version updated a few days ago doesn't contain the notification exposure api. Will the app gallery version work? When will be released?

AlainCh2 commented 4 years ago

Same issue

If I reopen the App it has lost previous config, I have always the BT on !! ( I never shut it down I need it ON)

V10 - Pie updated

DrSchottky commented 4 years ago

Ai possessori di Huawei che hanno provato l'app: potreste provare a scaricare l'app nRF Connect for Mobile aprire la il menu "Device information" e postare uno screenshot, indicando anche se con l'app funzionava tutto o c'erano dei problemi (errori, mancanza NE nelle impostazioni Google, etc) ?

Una cosa del genere:

83694434-52550f00-a5f8-11ea-8dee-0e4a5f7fb041

Grazie

AlainCh2 commented 4 years ago

Here you go. No problem whatsoever with nRF Connect.

2020-06-04 14 20 48

DrSchottky commented 4 years ago

@AlainCh2 Multiple adv not supported, yet another confirmation that's the issue (see #154 )

fabioalbani commented 4 years ago

Hello, I have a Huawei p8 lite 2017, I don't see covid exposure settings in Google setup, the play version is 20.15.13.

My screenshot is

Il gio 4 giu 2020, 14:33 DrSchottky notifications@github.com ha scritto:

@AlainCh2 https://github.com/AlainCh2 Multiple adv not supported, yet another confirmation that's the issue (see #154 https://github.com/immuni-app/immuni-app-android/issues/154 )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/immuni-app/immuni-app-android/issues/146#issuecomment-638818907, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZ7KGB43E3DQKYCLUPPHF3RU6IDFANCNFSM4NQERHYA .

matteosecli commented 4 years ago

Immuni keeps deactivating after a while (automatic power management turned off, etc.) and I have to turn bt off & activate again. Play Services 20.18.17 (120408-311416286).

Here's the BLE info:

Screenshot_20200604_144405_no nordicsemi android mcp

Exposure Notifications:

Screenshot_20200604_144552_com google android gms

heyteacher commented 4 years ago

starting from v1.0.2, app is available again in Google Play for my Huawei P10 Light and seems to work fine 👌

heyteacher commented 4 years ago

starting from v1.0.2, app is available again in Google Play for my Huawei P10 Light and seems to work fine

and "COVID-19 exposure notifications" appears magically in Google application IMG_20200608_113723

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.