10 ms·
How I helped fix Canadaʼs Covid Alert app
- rubatuga 6y agoAs a Canadian, many thanks to OP for removing unnecessary requests to Google!
- jszymborski 6y agoCame here to similarly give thanks to this outstanding Canadian citizen.
- scoates 6y ago🇨🇦
- simlevesque 6y agohey because of your post on r/biereqc I got great beers from Mondial de la bière thanks for that it's funny how small the world is
- fouc 6y agoInteresting, flags get past the emoji filter on HN?
- CraftThatBlock 6y agoFlags are character code in Unicode (matching with the ISO country code), so this "emoji" is "CA"
- thefounder 6y agoNice to see it uses Go on the back-end
- AS37 6y agoHow can you tell?
- avtar 6y agoThe server source code: https://github.com/cds-snc/covid-alert-server https://github.com/cds-snc/covid-alert-server
- scoates 6y agoThe PR I submitted to the backend (that was not needed after a bit of discussion) was Go. https://github.com/cds-snc/covid-alert-server/pull/241 https://github.com/cds-snc/covid-alert-server/pull/241 (I don't know Go (-: )
- burke 6y ago> I'll be honest: I barely knew anything about the CDS and I expected some runaround from a government agency like this, and I was pleasantly surprised I'm one of the team that did the initial implementation of the server and iOS app before handing it off to the CDS for the latter part of implementation, and I've been really, really impressed with the CDS. They're a great model for what tech in government should look like.
- OJFord 6y agoI haven't worked with either of them, but I'm British and similarly impressed with our GDS (G for Gov.) - this is interesting: https://www.publicsectorblogs.org.uk/2018/07/gds-across-the-globe-where-our-alumni-are-now-government-digital-service/ https://www.publicsectorblogs.org.uk/2018/07/gds-across-the-...
- scoates 6y agoYeah, my interactions with them were all great. Really refreshing.
- ghostpepper 6y agoI had no idea there was a Canadian Digital Service - I'm glad to hear that it not only exists but that it's a relatively efficient government organization. On a somewhat-related note: you wouldn't happen to be / know who is responsible for the BC CDC Covid results service, would you? I was disappointed to see this page, which asks for personal information including your PHN, served over HTTP. Not only that but there is actually a disclaimer saying it's fine to ignore the big red padlock because the iframe uses HTTPS (which is also technically not true as far as I can tell - the iframe _redirects_ to HTTPS though).
- shaggyfrog 6y agoI’m glad that the Canada COVID-19 contact tracing app is open source and available on GitHub, and I’m glad people can push fixes to it, but this kind of bug exists because it’s using React Native unnecessarily, and dragging in a zillion dependencies. I don’t see why both the iOS and the Android versions can’t be fully native, besides a desire to have a single codebase. The apps aren’t doing anything fancy, UI-wise. They are basically just integrating with the native contract tracing system framework on each platform. Dragging in React Native and its giant web of dependencies makes the codebase harder to audit and manage from a security perspective. It’s also a product of Facebook, which is greatly concerning from a privacy point of view. I still have this app installed on my iPhone and I keep it up to date, but I really wish it was built differently.
- advisedwang 6y agoThe desire to have a single codebase seems pretty reasonable: * Reduces development cost * Provides more consistency for users (simpler to document and explain)
- jeromegv 6y agoIt was initially built by Shopify engineers and it’s their go-to technology so I guess that’s how it came about.
- mikewhy 6y ago> but this kind of bug exists because it’s using React Native Considering how this issue was from a package that isn't included with React Native, this seems like a bit of a stretch.
- kennywinker 6y agothe native way of doing this on iOS would be `SCNetworkReachability` which is part of the built-in SystemConfiguration framework. That call requires the endpoint to check as an input - thus prompting the developer to think about if they are contacting an unnecessary third party. So while this isn't really the specific fault of react native, it does seem to me to be the fault of a non-native framework that encourages developers to use higher level abstractions rather than system frameworks.
- sgarrity 6y agoNice fix and nice write-up of the fix. A Canadian herough.
- canada_dry 6y ago+1 @scoates. Next up, can you please help fix the broken "Alert Ready" Emergency Alert System!!
- yoru-sulfur 6y agoI used to work at CDS a couple year back, worked with both Tim and John (The people who responded to the GitHub issue). I'm glad to hear that his interactions with them were relatively without friction. A big part of what they're trying to do is lead by example for how modern software development can take place somewhere like the government (Taking a lot of cues from GDS and 18F).
- kozmonaut 6y agoOP is a fine man, thanks for doing your duty to Canada!
- kozmonaut 6y agoOP is a fine man, thanks for your duty to making this app better
- ramshorns 6y agoIt'd be nice to see COVID Alert in F-Droid, or somewhere else that doesn't require nonfree dependencies.
- jeffrallen 6y agoIf the app is not signed and distributed by Google or Apple, it cannot use the Google/Apple Exposure Notification protocol.
- ourcat 6y agoRe: the 'disturbing' Google chatter/endpoint, a 204 HTTP status reponse is also the expected code for a pre-flight OPTIONS request to support CORS.
- alexashka 6y agoIn short, it used to ping a google url to decide if the internet is working and now, it pings a different url? This is cute, given that Apple "may collect a variety of information, including your name, mailing address, phone number, email address, contact preferences, device identifiers, IP address, location information, credit card information" [0] any time you "download a software update" or "connect to our services". Where is my fix to opt out of this garbage? When they say "connect to our services", do they mean automatic checks for os updates that all their products do without an option to opt out? This concern over privacy on the level of individuals 'fixing' things is utter lunacy. You've fixed one of a thousand cuts your privacy is killed with, congratulations :) [0] https://www.apple.com/legal/privacy/en-ww/ https://www.apple.com/legal/privacy/en-ww/