MohGovIL / hamagen-react-native

Israel's Ministry of Health's COVID-19 Exposure Prevention App
https://health.gov.il/
MIT License
508 stars 153 forks source link

Use the new Apple / google contact tracing API #190

Open sitay1 opened 4 years ago

sitay1 commented 4 years ago

see Contact tracing API

oyd11 commented 4 years ago

Cool, see the Stack-Overflow blog and podcast chapter about it:

https://stackoverflow.blog/2020/04/15/reading-the-spec-covid-19-contact-tracing-from-apple-and-google/

sitay1 commented 4 years ago

https://9to5mac.com/2020/04/29/ios-13-5-beta-covid-19-contact-tracing/

kaplanlior commented 4 years ago

Thanks for that, this is being checked. Google/Apple also imposes some limitations to use this API.

https://techcrunch.com/2020/05/04/apple-and-google-release-sample-code-and-detailed-policies-for-covid-19-exposure-notification-apps/

gadicc commented 4 years ago

Just to clarify for others, the main problematic clause in the link above - to my understanding - is:

They can’t access or even seek permission to access a device’s Location Services, which provides specific geolocation data. Google and Apple note that apps already available from public health authorities that make use of location data will continue to be offered, but that no apps that make use of that info will also have access to the new Exposure Notification API

So there is no possibility to integrate into Hamagen unless it completely gives up it's current approach (the pro's and con's of which could be debated). Note also that Google/Apple are only allowing one app per country. Only other option I think is for a separate, 2nd app from the competent Hamagen dev team.

yoav2 commented 4 years ago

From what I understand, in outdoor places there are less chances getting covid-19 than indoor places, So bluetooth solutions like the Google/Apple project are more efficient than location GPS solutions.

kaplanlior commented 4 years ago

Let me clear a mix between a few things. We have bluetooth (BLE to be exact) technology and we have Google/Apple contact tracing API, which uses BLE, but also has many restrictions (e.g. no GPS).

As you can see at #213, BLE will be part of Hamagen 2.0, so we plan to enjoy both GPS and BLE. You can also look at https://github.com/MohGovIL/rn-contact-tracing for these efforts.

yoav2 commented 4 years ago

Thanks for the information

yoav2 commented 4 years ago

From what I read, it's not efficient to use other BLE solution. The Google+apply solution is the only one that will keep bluetooth running in the background, and not go to sleep any time your phone is locked.