You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
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).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
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.
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).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Chris Hannemann chris.hannemann@gmail.com
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Would you be interested in making this change? You can copy the logic that already exists and add an else if condition. You'll also need to add the scheme to the LSApplicationQueriesSchemes array in Loop's Info.plist.
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 😄
I'd rather keep the logic simple rather than digging in the device configuration from the status screen and say:
IF (G5 app installed) THEN open(G5 app)
ELSE IF (G4 app installed) THEN open(G4 app)
You can use the canOpenURL method in each if condition:
if let URL =NSURL(string:"dexcomcgm://")whereUIApplication.sharedApplication().canOpenURL(URL)
Activity
loudnate commentedon Jun 6, 2016
Do you know what the URL scheme is to open the G4 app?
channemann commentedon Jun 6, 2016
I do not; is this something you can only find by examining the source code,
or is it publicly exposed?
On Mon, Jun 6, 2016 at 11:25 AM, Nathan Racklyeft notifications@github.com
wrote:
Chris Hannemann
chris.hannemann@gmail.com
loudnate commentedon Jun 6, 2016
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.
channemann commentedon Jun 6, 2016
I don't see the CFBundleURLSchemes key, but under URL types > Item 0, there is
URL identifierofcom.dexcom.Share2. Is that what is needed?loudnate commentedon Jun 6, 2016
It's there:
dexcomshareloudnate commentedon Jun 6, 2016
Would you be interested in making this change? You can copy the logic that already exists and add an
else ifcondition. You'll also need to add the scheme to theLSApplicationQueriesSchemesarray in Loop'sInfo.plist.channemann commentedon Jun 6, 2016
I can give it a shot. Am I right that the conditional would be here:
https://github.com/loudnate/Loop/blob/master/Loop/View%20Controllers/StatusTableViewController.swift#L561
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.
loudnate commentedon Jun 7, 2016
well then I'd suggest you delete the G5 app from your phone if you're not using it 😄
I'd rather keep the logic simple rather than digging in the device configuration from the status screen and say:
You can use the
canOpenURLmethod in eachifcondition:Merge pull request LoopKit#20 from elnjensen/dev-watch-sk-ej
Merge pull request LoopKit#20 from loudnate/filter-services