-
Notifications
You must be signed in to change notification settings - Fork 497
Error when communicating with Google API(17): Nearby.EXPOSURE_NOTIFICATION_API is not available on this device #508
Comments
Very strange, this shouldn't happen in your case being all up to date with Google stock phone. Are you sure there's nothing out of the ordinary? I had hoped they had fixed the crash at least by now. One could have hoped for a better diagnostic error description. |
Same error on Xiaomi devices (in a beta version of the app). Are you going to support Custom ROMs as MIUI and other OS? The current version does not show this error (although it should still be present). |
@Timo1993, they won't care about beta versions. Have you tried the release version from the app store? |
There is no error. But I cannot believe that the API is available on Xiaomi devices. I guess that the message is suppressed. The hotline told me that it is not compatible. So there is no error, but it seems to be not compatible. |
Same error on Huawei p30 (EMUI 10.0.1, Android 10) |
Same error on Xiaomi Redmi 5 plus. (MIUI Global 11.0.2, Android 8.1) |
Not sure if that's relevant: I built and installed version 1.0.2 from source, signing with my debug key. |
@schildbach This error message happens also when at the time that app was started, the Google Play Services were not yet uptodate. See #513 for a possible issue. In short: If you got the message to update Google Play Services after starting the app, then triggered the update and after installation switched back to CWA, the error 17 is coming. The stack trace on "details" shows old version of play services. A restart of phone or the CWA app helps. |
Hi,
What play services version does the exception trace shows behind the @ sign? |
|
That's obvious: 17.3.0 is old. at least 18.xxxx required. Did you phone ask you for an update? I had an old one with 17.3, too (was switched off for 5 months). After start of app, the play services asked for an update, which I did. But the error was then coming back. Issue is that app wasn't restarted after play services update. I would make sure that play services are up to date: https://play.google.com/store/apps/details?id=com.google.android.gms Then for safety restart the phone (or at least kill the CoronaWarnApp and restart it). I opened issue #513 |
Got the same error on a CAT S41. |
I have play services version "20.21.15" and it shows me the same "17.3.0" version in the error code. |
Gleicher Fehler auf Huawei Mate 20x (EMUI 10.0.0.200 Android 10) |
Hatte das gleiche Problem beim Blackberry KEYONE. Da endete der Android support ebenfalls mit Version 8.1. |
Vielen Dank für die freundliche Nachricht....
Bin gespannt wann es funktioniert...
freemin7 <notifications@github.com> schrieb am Di., 16. Juni 2020, 12:47:
… Hatte das gleiche Problem beim Blackberry KEYONE. Da endete der Android
support ebenfalls mit Version 8.1.
Nach etwas warten (hatte den Google Play Service erst frisch installiert)
hat es dann geklappt.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#508 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP7FVQIJ5BXCAIW5KA7NLWTRW5ET5ANCNFSM4N7NBBMQ>
.
|
Same issue (after restart too) at Samsung Galaxy J5 Model SM-J510FN |
Huawei P40 Pro, mit nach-installierten Google Play Diensten [Google Play Services Beta v20.18.17 (120400-311416286)] Bzw, eine HMS(Huawei Mobile Services)-Version wäre gut Edit: Okay, I think I just found a fix (at least for me).
|
A self-signed version cannot have access to the API, as this requires whitelisting. |
So how can I whitelist my signature? |
I'm afraid there's no way: corona-warn-app/cwa-documentation#214 |
Then if I can't install from source, what's the source good for? Even a code review is worthless because I can't be sure what's in the binary unless I build it myself. |
The intention is, of course, that only approved applications from health authorities can access the contact tracing data. I encountered this problem as well when I wanted to test earlier versions. But protecting the collected and emitted keys from other apps is crucial, isn't it? There have been discussions about reproducible builds on github, if you like to have a look. |
Well, usually access to sensitive data is guarded by a grantable/deniable permission. In this case however, the separation into different processes (and thus an interface between the two) would not even be necessary. If this app would collect the data itself it could consume it itself. No interface to more apps necessary.
I'll have a look. |
I found this issue as well on a Google Pixel 3. Retested with the app installed from Android Studio to grab the stack trace. The output is here:
|
I have faced the same issue on Mi 9. My app was downloaded from Google app store so I am not so sure why it is not working
|
I have the same Issue as well. I have a Google Pixel 3XL with the latest Android. My Play Services Version is 20.18.17. However the Stockversion of Play Services is 17.7.86. I dont have a logged in Googleaccount on this phone and the Playstore app is deactivated. I downloaded the current Google Play Services through the Aurora-Store. |
I found a similar issue in the Git repo of Google's reference app. Perhaps this is a problem in the Google library |
Same error here. And from my research it is due to the already mentioned issue with the API not allowing self-compiled versions to access it. Thus I agree that offering the source code to gain trust into the app makes no sense as it cannot be guaranteed that the official version is compiled from this source code. This should absolutely be changed! |
Friendly note, you can't compile from source code and expect it to work. The Exposure API will not work and you will get exactly this error 3, Cause Google API 17. It's very important to state whether you installed from Play Store, Sideloaded or Compiled from Source. That makes a huge difference in the importance of the bug. The reproducible build question is still entirely valid but not directly related to this problem. So you may want to close this issue here as a duplicate of corona-warn-app/cwa-documentation#257 |
I have installed it from Google Play , and it does NOT work. Very strange. |
@ChuangSheep Thanks for clarifying. Can you add as much info as possible:
Then we have some structured info on where there are issues. Plus, if possible list the things you have tried and that have failed. PS: I'm not associated with the project, not getting paid or anything. Maybe also try calling the technical support hotline. Not sure this helps bit give it a go. |
I am also having this problem (UNKNOWN_ERROR_CODE(39503)) on a Huawei P9 Lite, Android 7.0, after being prompted to upgrade the Google Play Services. I updated them to v20.18.17, the CWA still tells me I have 17.3.0 though. No reboot or reinstallation helping so far. CWA was installed from the Play Store. I am logged into my Google account, the phone is not rooted or changed otherwise. |
I had a similar problem regarding Google Play Services v20.18.17 and CWA being stuck on 17.3.0. |
@piratenkatzerrr Thanks! Clearing the cache/data was not enough for me for some reason, although the CWA would again prompt me to update the Google Play Services. I joined its beta program through the app store and that seems to have triggered an update a few minutes later. I can use the CWA now. |
Same issue here on an old phone of mine. CWA thinks I'm on GPServices 17.3
Android 7.1.1 Tried deleting app, restarting phone several times, signing up for Play Services Beta. Nothing has helped yet. As it's only my second phone it's not to important for me, but you might clearify the error message in an future update of the app, as it seems to be a more common problem. Edit: GPServices in Beta (still version 20.18.17 maybe a newer build?), clearing cached data, waiting over night, reboot the phone, reinstalled the app. Now it works. |
I do have the same issue but I can add a very useful insight that affects not only me, but also another user with an equal setup. Whenever using/installing the app as a NON-Android Administrator account (Second User on the phone, not Guest-Account!) the BLE-beacon will not activate and throw this error. System and updates all up-to-date. Huawei P20 Also with Sony Xperia ZX1 Compact with NON-ADMIN Account -> Same error. |
As in my previous comment:
More info: I have updated the framework, service und play store manually but it does not work either. Additional Information: The phone is not rooted, neither changed OS.
Tried: Reboot, clear data/cache, reinstall app, manually update the google suit (framework, service, store) |
I'm having the same issue with Pixel 2 with Android and Google Play Services up to date and I have 2 users defined. The app will work fine on the Admin user but will throw this error on the other user. |
@HassenHichri @ChuangSheep @Chrakker |
Selbe Problem beim Samsung Galaxy Note 8 URSACHE: 3 Ursache: Android 9 aktueller Android Patch vom Juni 2020 |
I have managed to get it working on my rooted Pocophone F1 (running custom Android 10 rom with NikGapps): To fix it, I did the following:
I hope this helps anyone else having the same issue :-) Ich habe es auf meinen gerooteten Pocophone F1 (mit Android 10 custom rom und NikGapps) zum laufen gebracht: Behoben habe ich es wie folgt:
Ich hoffe es hilft auch anderen :-) |
But shouldn't this merged with #499 - and have some useful topic name to differ those different kind of API-17-Problems? |
Cache löschen und Neu starten würde schon mehrfach erfolgreich benutzt. Daten löschen ist teilweise sinnvoll, aber wäre zu vermeiden, sonst muss man mehrfach 2FactorAuth wiederholen. |
It works now on my phone. I got the GPS version 20.21.17 from apkpure or so (i know really not the way you want to get your stuff). After that i had the german description "Benachrichtigungen zu möglichem Kontakt mit COVID-19-Infirzierte" and the red symbol on the left hand side of it. I was able to click on it an get the list of apps that use the exposure-API. I clicked on the open-button next to the entry "Corona-Warn". After that it worked. I do not have a google-account on my phone. I installed Corona-Warn through aurora and Play Services through the apkpure APK. I am unsure whether it was the waiting or opening the Corona-app through the Google-Menu. Anyway it works now, so it is possible to use the App without a Google Account, yeey |
Thank you. |
Joining the beta program for Google Play Services seems to have finally done the trick. After following the previous advice of clearing the local cache and -storage for Playstore and Play Services, the app put up a notification, claiming that the installed Play Services version needs to be updated (which has been up to date on the stable branch). |
Thank you all for your input. While we cannot solve this issue directly, the team implemented a more descriptive error description in the latest app version that also links to the FAQ which contain more information than could possible fit into a single mobile screen. |
Describe the bug
I get the following error after the first welcome screens:
The exception trace has the message:
This is on a Pixel 2, all up to date. Bluetooth is enabled.
The text was updated successfully, but these errors were encountered: