opentrace-community / opentrace-cloud-functions

OpenTrace Cloud Functions. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
273 stars 121 forks source link

How do I get phone numbers of Bluetooth devices connected to #36

Open Jayjerome opened 4 years ago

Jayjerome commented 4 years ago

Please how do I get the phone numbers of all the Bluetooth devices my phone connects with, it doesn't seem to be included in the json file sent across.

Darrenchand commented 4 years ago

Did you manage to get the PIN to display on the upload data page in the app?

Jayjerome commented 4 years ago

No I wasn't

Hoangtho11188 commented 4 years ago

Same question. Uploaded data to upload-bucket successed Please see my JSON file below. StreetPassRecord_Xiaomi_Redmi Note 4X_2020-04-27_08-26-10.txt

qtangs commented 4 years ago

We have shared a reference implementation for processUploadedData, you can find the logic to decrypt exchanged messages to uid here:

https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/functions/src/opentrace/processUploadedData.ts#L104

sudoharish commented 4 years ago

We have shared a reference implementation for processUploadedData, you can find the logic to decrypt exchanged messages to uid here:

https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/functions/src/opentrace/processUploadedData.ts#L104

not able to understand how to use logic how to get uid or mobile no. from street past record>msg, or how to decrypt encrypted msg

Sure. There's a file called CustomEncrypter.ts with a decryptTempID, you can find more decryptions. you can look there and i'm sure you are going to find a solution

Originally posted by @ie76 in https://github.com/opentrace-community/opentrace-android/issues/13#issuecomment-620570456

how to call that and put msg argument, do i need to do it from command line from cloud function directory in my local machine or from the firebase test section