ukhsa-collaboration / covid-19-app-android-ag-public

COVID19 Android app
Other
142 stars 31 forks source link

"Unfortunately, you can't run this app" on several Android phones #28

Closed SherylHYX closed 4 years ago

SherylHYX commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'NHS covid 19' (I have also tried to give as many permissions as I can to this app)
  2. Click on 'Continue'->'I Am OVER 16'
  3. Scroll down to 'I agree'
  4. Enter my postcode district
  5. Click on 'Continue'
  6. See error: 'Unfortunately, you can't run this app. This could be due to: A restriction in your settings(for example, if this is a company phone). Another app on your phone is using the same technology and stopping this app from working.'

Expected behavior Now the APP should function normally.

Smartphone 1(Mi10 Ultra):

Smartphone 2(HUAWEI P20):

Smartphone 3(HUAWEI P9):

Additional context I have also tried to give as many permissions as I can to this app, but failed. I tried three phones, all failed.

songchaow commented 4 years ago

Same issue with me. I compiled the app and debugged on my phone via Android Studio, when GoogleExplosureNotificationApi::start() was called at uk/nhs/nhsx/covid19/android/app/exposure/ExposureNotificationManager.kt:L15, an exception was raised with detail message: "17: API: Nearby.EXPOSURE_NOTIFICATION_API is not available on this device. Connection failed with: ConnectionResult{statusCode=UNKNOWN_ERROR_CODE(39501), resolution=null, message=null}". Perhaps the problem is more related to Google Exposure Notifications API's compatibility, not the app.

paulchambers commented 4 years ago

Do you have Google Play Services installed?

If so what version?

Edit: Note self compiled versions won't have permission from Google to use the API so that error may not be related.

nhs-covid19 commented 4 years ago

Thanks for your interest in the NHS Covid-19 project. We do welcome feedback on device compatibility and issues at - https://faq.covid19.nhs.uk/create-case/ and endeavour to respond to technical issues here. We are looking to broaden manufacturer support over time. Google Play Services is currently required to use the application. As @paulchambers mentions - a self-built application will not have permission to use the EN API, as per the Exposure Notifications page at: https://www.google.com/covid19/exposurenotifications/ - "Only public health authorities can use this system. Access to the technology will be granted only to apps from public health authorities."