opentrace-community / opentrace-android

OpenTrace Android app. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
577 stars 225 forks source link

NOT able to verify OTP. #19

Closed Biplovkumar closed 4 years ago

Biplovkumar commented 4 years ago

Not able to go After verify screen. Please help. Error :- 2020-04-17 22:12:48.903 26483-26483/io.bluetrace.opentrace.stg D/OTPFragment: NOT-IDLE OnButtonClick 3B 2020-04-17 22:12:48.920 26483-26483/io.bluetrace.opentrace.stg I/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq@90c7e82 2020-04-17 22:12:52.751 26483-26504/io.bluetrace.opentrace.stg D/FirebaseAuth: Notifying id token listeners about user ( 5zJ2oVQxZMYyI7BDpKOOCKshsP02 ). 2020-04-17 22:12:52.752 26483-26504/io.bluetrace.opentrace.stg D/FirebaseAuth: Notifying auth state listeners about user ( 5zJ2oVQxZMYyI7BDpKOOCKshsP02 ). 2020-04-17 22:12:52.762 26483-26483/io.bluetrace.opentrace.stg D/OnboardingActivity: NOT-IDLE signInWithCredential:success 2020-04-17 22:12:52.802 26483-26483/io.bluetrace.opentrace.stg D/TempIDManager: NOT-IDLE [TempID] Error getting Temporary IDs 2020-04-17 22:12:52.806 26483-26483/io.bluetrace.opentrace.stg D/OnboardingActivity: NOT-IDLE Retrieved Temporary ID successfully 2020-04-17 22:12:52.814 26483-26483/io.bluetrace.opentrace.stg W/Utils: NOT-IDLE get handshake pin (failure): Invalid URL host: "<Your Firebase region>-opentrace-b01d4.cloudfunctions.net" 2020-04-17 22:12:52.818 26483-26483/io.bluetrace.opentrace.stg E/OnboardingActivity: NOT-IDLE Failed to retrieve HandShakePin Invalid URL host: "<Your Firebase region>-opentrace-b01d4.cloudfunctions.net" 2020-04-17 22:13:36.908 26483-26483/io.bluetrace.opentrace.stg I/PhoneAuthProvider: Sms auto retrieval timed-out.

error

matiasmospan commented 4 years ago

seems you forgot to change "Your Firebase region" in gradle.properties Invalid URL host: "-opentrace-b01d4.cloudfunctions.net" 2020-04-17 22:13:36.908 26483-26483/io.bluetrace.opentrace.stg I/PhoneAuthProvider: Sms auto retrieval timed-out.

Biplovkumar commented 4 years ago

I have putted there but still issue comming. not going further from if (it.isSuccessful) { there. it haults there. plz help @matiasmospan sir. thanku

` private fun getTemporaryID(): Task { return TempIDManager.getTemporaryIDs(this, functions) .addOnCompleteListener { CentralLog.d("Biplov 7", "Retrieved Temporary ID successfully") Utils.getHandShakePin(this, functions).addOnCompleteListener {

              if (it.isSuccessful) {
                    CentralLog.d("Biplov 81", "Retrieved HandShakePin successfully")
                  navigateToNextPage()
                  //opentrace Biplovbabu
                } else {
                    CentralLog.e("Biplov 8", "Failed to retrieve HandShakePin ${it.exception?.message}")
                    updateOTPError(getString(R.string.verification_failed))
                    onboardingActivityLoadingProgressBarFrame.visibility = View.GONE
                }
            }

        }
}`
FIREBASE_REGION = "asia-south1"

STAGING_FIREBASE_UPLOAD_BUCKET = "opentrace-app-staging"
STAGING_SERVICE_UUID = "17E033D3-490E-4BC9-9FE8-2F567643F4D3"

V2_CHARACTERISTIC_ID = "117BDD58-57CE-4E7A-8E87-7CCCDDA2A804"

PRODUCTION_FIREBASE_UPLOAD_BUCKET = "opentrace-app"
PRODUCTION_SERVICE_UUID = "B82AB3FC-1595-4F6A-80F0-FE094CC218F9"
rinekri commented 4 years ago

@Biplovkumar what region did you put here? Check this answers https://github.com/opentrace-community/opentrace-android/issues/9#issuecomment-613100830 and https://github.com/opentrace-community/opentrace-android/issues/9#issuecomment-612634682

matiasmospan commented 4 years ago

have this in mind

// SUPPORTED_REGIONS from function-configuration.d.ts
declare type SUPPORTED_REGIONS = "us-central1" | "us-east1" | "us-east4" | "europe-west1" | "europe-west2" | "asia-east2" | "asia-northeast1";
Biplovkumar commented 4 years ago

oo. thanku so much @matiasmospan. You saved my day. its working fine.