Closed supernovahimura closed 4 years ago
@supernovahimura : hi, HTTP error 401 related with authentication. You can review again your service-account.json that you downloaded from firebase console.
the good service-account.json contain following components: private_key_id, private_key, auth_uri, token_uri, auth_provider_x509_cert_url, and client_x509_cert_url
good luck.
Thanks!!!, I had to repeat the process, I get the following from firebase:
Now it asks me for a pin to upload data, how do I get that PIN?
@supernovahimura : refer to below comment on how to hardcode your upload pin inside getUploadToken.ts
https://github.com/opentrace-community/opentrace-cloud-functions/issues/6#issuecomment-612867291
add the following code and it shows me invalid pin, uninstall the app, but now in register your mobile number, nothing returns and nothing appears in firebase, when I select get OTP.
@supernovahimura : is there any error in the android logcat ? you mean when you press 'Get OTP' there is no error shown in the firebase functions logs?
These are the errors I get when debugging the app:
When I press 'Get OTP' I get the following:
@supernovahimura : based o your logcat specificlly at the last part, it shows that your app is not authorized to firebase. There are 2 possibilities:
the app name you register into firebase project not correct. remember you need to put the value package name (find in manifest file) + stg. e.g your project is io.bluetrace.opentrace therefore you need to register your package name as io.bluetrace.opentrace.stg
if the approach above still not solving your problem , you can register your debug SHA key inside the android app registration in firebase.
Good luck.
thanks @alexissinglaire now it's working
Hi, When I want to upload data, the following appears: