covidwatchorg / covidwatch-ios-tcn Goto Github PK
View Code? Open in Web Editor NEWCovid Watch iOS TCN app
License: Apache License 2.0
Covid Watch iOS TCN app
License: Apache License 2.0
The app is on her phone (but the logo looks grayed out and she gets an error alert saying "Unable to download CW app").
Seems that when you mark "submit report" on the iOS app its double posting.
Data in firestore emulator:
{
"documents": [
{
"name": "projects/tagstwo-431e3/databases/(default)/documents/signed_reports/mhsCQ3X2BDycCsMGMqS0",
"fields": {
"memo_type": {
"integerValue": "1"
},
"signature_bytes": {
"bytesValue": "7A2hwNBjDnV2Gm0FGubvqT9yKkOfH1rJhznze6fyv+NpcOJ4ltTxpRgFA69QEkC6qMiWgX+jp93tt+0i8ywsCA=="
},
"end_index": {
"integerValue": "2"
},
"report_verification_public_key_bytes": {
"bytesValue": "hjDyCSrbqKPQNzBBVzycUHk9dMSdZ4JdaYnwbxp1Tlc="
},
"start_index": {
"integerValue": "1"
},
"temporary_contact_key_bytes": {
"bytesValue": "1wh/jCS2D5aVK6lqdPRmDhgLBMmWeIdg4TyTNiOQIpQ="
},
"memo_data": {
"bytesValue": "SGVsbG8sIFdvcmxkIQ=="
},
"timestamp": {
"timestampValue": "2020-04-28T03:36:22.499Z"
}
},
"createTime": "2020-04-28T03:36:22.593625Z",
"updateTime": "2020-04-28T03:36:22.593625Z"
},
{
"name": "projects/tagstwo-431e3/databases/(default)/documents/signed_reports/qq8tyhqyFumg1kEnWPTC",
"fields": {
"memo_type": {
"integerValue": "1"
},
"signature_bytes": {
"bytesValue": "36sFnlj7vDHsvUpXdeyKTU8JpmaD0MAMQJS7hXJ/jAaAhodxvxBqLQOVEhSLWUoQDmsHoacxoxWnssuft1GMAw=="
},
"end_index": {
"integerValue": "2"
},
"report_verification_public_key_bytes": {
"bytesValue": "hjDyCSrbqKPQNzBBVzycUHk9dMSdZ4JdaYnwbxp1Tlc="
},
"start_index": {
"integerValue": "1"
},
"temporary_contact_key_bytes": {
"bytesValue": "1wh/jCS2D5aVK6lqdPRmDhgLBMmWeIdg4TyTNiOQIpQ="
},
"memo_data": {
"bytesValue": "SGVsbG8sIFdvcmxkIQ=="
},
"timestamp": {
"timestampValue": "2020-04-28T03:36:22.499Z"
}
},
"createTime": "2020-04-28T03:36:22.593615Z",
"updateTime": "2020-04-28T03:36:22.593615Z"
}
]
}
Cloud function emulator logs:
functions: Beginning execution of "submitReport"
i functions: Beginning execution of "submitReport"
> { memo_type: 1,
> temporary_contact_key_bytes: '1wh/jCS2D5aVK6lqdPRmDhgLBMmWeIdg4TyTNiOQIpQ=',
> end_index: 2,
> report_verification_public_key_bytes: 'hjDyCSrbqKPQNzBBVzycUHk9dMSdZ4JdaYnwbxp1Tlc=',
> signature_bytes:
> '7A2hwNBjDnV2Gm0FGubvqT9yKkOfH1rJhznze6fyv+NpcOJ4ltTxpRgFA69QEkC6qMiWgX+jp93tt+0i8ywsCA==',
> memo_data: 'SGVsbG8sIFdvcmxkIQ==',
> start_index: 1 }
> Call TCN Rust symptom data
> Report JSON received: Report {
> temporary_contact_key_bytes: '1wh/jCS2D5aVK6lqdPRmDhgLBMmWeIdg4TyTNiOQIpQ=',
> memo_data: 'SGVsbG8sIFdvcmxkIQ==',
> memo_type: 1,
> start_index: 1,
> end_index: 2,
> signature_bytes:
> '7A2hwNBjDnV2Gm0FGubvqT9yKkOfH1rJhznze6fyv+NpcOJ4ltTxpRgFA69QEkC6qMiWgX+jp93tt+0i8ywsCA==',
> report_verification_public_key_bytes: 'hjDyCSrbqKPQNzBBVzycUHk9dMSdZ4JdaYnwbxp1Tlc=' }
> { memo_type: 1,
> temporary_contact_key_bytes: '1wh/jCS2D5aVK6lqdPRmDhgLBMmWeIdg4TyTNiOQIpQ=',
> end_index: 2,
> report_verification_public_key_bytes: 'hjDyCSrbqKPQNzBBVzycUHk9dMSdZ4JdaYnwbxp1Tlc=',
> signature_bytes:
> '36sFnlj7vDHsvUpXdeyKTU8JpmaD0MAMQJS7hXJ/jAaAhodxvxBqLQOVEhSLWUoQDmsHoacxoxWnssuft1GMAw==',
> memo_data: 'SGVsbG8sIFdvcmxkIQ==',
> start_index: 1 }
> Call TCN Rust symptom data
> Report JSON received: Report {
> temporary_contact_key_bytes: '1wh/jCS2D5aVK6lqdPRmDhgLBMmWeIdg4TyTNiOQIpQ=',
> memo_data: 'SGVsbG8sIFdvcmxkIQ==',
> memo_type: 1,
> start_index: 1,
> end_index: 2,
> signature_bytes:
> '36sFnlj7vDHsvUpXdeyKTU8JpmaD0MAMQJS7hXJ/jAaAhodxvxBqLQOVEhSLWUoQDmsHoacxoxWnssuft1GMAw==',
> report_verification_public_key_bytes: 'hjDyCSrbqKPQNzBBVzycUHk9dMSdZ4JdaYnwbxp1Tlc=' }
i functions: Finished "submitReport" in ~1s
i functions: Finished "submitReport" in ~1s
For some reason, git can only recognize commands from the base directory. See the example for clarification:
$ git status
On branch feature/FixProjectAfterCaseChange
Your branch is up to date with 'origin/feature/FixProjectAfterCaseChange'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: CovidWatch iOS/UIComponents/LargeText.swift
no changes added to commit (use "git add" and/or "git commit -a")
$ cd CovidWatch\ iOS
$ git status
On branch feature/FixProjectAfterCaseChange
Your branch is up to date with 'origin/feature/FixProjectAfterCaseChange'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ../CovidWatch iOS/UIComponents/LargeText.swift
no changes added to commit (use "git add" and/or "git commit -a")
$ git add UIComponents/LargeText.swift
$ git status
On branch feature/FixProjectAfterCaseChange
Your branch is up to date with 'origin/feature/FixProjectAfterCaseChange'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ../CovidWatch iOS/UIComponents/LargeText.swift
no changes added to commit (use "git add" and/or "git commit -a")
Implement first-time user flow from our latest Figma:
https://www.figma.com/file/0uL6s79o21jwUFZz16Dr8b/Covid-Watch---App-v1.8?node-id=760%3A561
(When you open the Figma press the Present button to see how it should work.)
@zssz per our conversation on Slack below is a link to a log file from Xcode showing the activity between a SAMSUNG Galaxy7 and iPhone 7 Plus - https://drive.google.com/file/d/1iPsSb8wtpUI_f-bQr7SDaAJAm2F8op96/view?usp=sharing
Also here is a link to a video showing the issue - https://drive.google.com/file/d/1rWJTTEXiniPW69mC8I8HkpO6rFEhTEz7/view?usp=sharing
The iOS app eventually crashes....let me know if you need the dump
We need to make the Hamburger Menu appear or disappear depending on a parameter so that it can be set to false when onboarding.
Hi there,
I'm working on a similar application, that is (as far as I understand your project) is probably trying to give even more privacy guarantees. However, the bluetooth part seems very similarr, and I'm trying to find out if you have found a solution to continue to scan for new devices on iOS, while the app is in the background.
Our project: https://github.com/ito-org
Our Protocol Description: https://github.com/ito-org/STRICT
I'd love it if we could collaborate at least on a technical level, and at least ensure that the bluetooth advertisements are compatible / readable by the other apps.
The home screen warning appears after submitting your infection, however this doesn't check that the server returns a 201, as I ran this against my local dev server and it failed but I still saw the "you have reported banner", so we should check the result before displaying the warning.
class BaseViewController: UIViewController {
var header: Header!
Can we do this for:
covidwatch-ios
covidwatch-ios-minimal
tcn-client-ios
We want the following out of our README.md
How to Setup
This is the "Onboarding from scratch" for anyone new to read and should work
Explanation of what it does
How it interfaces with other COVIDWatch / external repos
How testing works
How to Contribute
Style guides etc
Badges
Lets add some cool badges:
https://gist.github.com/tterb/982ae14a9307b80117dbf49f624ce0e8
FAQ
When people are unsure lets populate this with some obvious answers
Contributors / Contacts
Link to the COVIDWatch Slack or how to email to get access / invites
@name's of people you can contact for help regarding the project.
Heres an example of some stuff I did in the cloud functions readme:
When you reject the notification permission the alert text isnt visible, however it is on bluetooth so this is weird.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.