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

SMS not received from firebase for phone authentication #34

Closed soriyasun closed 4 years ago

soriyasun commented 4 years ago

Hi,

First of all, I'd like to thank all the contributors to the discussion and specially the Gov of Singapore for publishing OpenTrace open source.

I've gone through all the README.md both for OpenTrace Android and OpenTrace-cloud-functions.

1 - npm --prefix functions test works fine

config.ts

encryption

  √ should have a valid default algorithm
#encryption
  √ should succeed in getting encryption key (880ms)
#upload
  √ should have valid buckets (829ms)
#upload
  √ should use a good pin generator

4 passing (2s)

2 - firebase deploy --only functions works also fine

My trouble when starting to test Opentrace : After entering the phone number for registration. My device does not receive the SMS code from firebase. I've enabled Phone authentication and put the SHA-1 as necessary..

Still no SMS has been sent from firebase.

When I tested with whitelisted phone numbers, I can register.

Could someone tell me what could be the missing point here ?

Thanks for your helps

soriyasun commented 4 years ago

Solved. It was a wrong SHA-1