-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open appropriate Dexcom app #20
Comments
Do you know what the URL scheme is to open the G4 app?
|
I do not; is this something you can only find by examining the source code, On Mon, Jun 6, 2016 at 11:25 AM, Nathan Racklyeft notifications@github.com
Chris Hannemann |
It's available in the plist file in the encrypted binary package downloaded by iTunes. Find the ipa file in finder, rename it to .zip, and uncompress it. Find the bundle in the Payload directory, and open it using the "Show Package Contents" context menu option. Inside there should be a file called Info.plist, and any supported URL schemes are under the CFBundleURLSchemes key.
|
I don't see the CFBundleURLSchemes key, but under URL types > Item 0, there is |
It's there: |
Would you be interested in making this change? You can copy the logic that already exists and add an |
I can give it a shot. Am I right that the conditional would be here: In which case, how do I determine whether the user has a G4 or G5? I actually have both apps on my phone, so it successfully goes to the G5 apps even though I have no reason to be there right now. |
well then I'd suggest you delete the G5 app from your phone if you're not using it 😄
You can use the if let URL = NSURL(string: "dexcomcgm://") where UIApplication.sharedApplication().canOpenURL(URL) |
Merge latest changes into IRC branch
Filter the services array to just the CGM service
Currently, a single tap on the status screen's glucose chart opens the Dexcom G5 app. If the user is instead using a G4, is would to preferable to open the G4 app (Share 2).
The text was updated successfully, but these errors were encountered: