Skip to content
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

Writes last read glucose to icon badge #2

Closed
wants to merge 1 commit into from

Conversation

dennisgove
Copy link

If able to read a glucose value then will write it to the app badge. If error in reading then clears badge.

Nothing fancy here but thought I'd share with you what I added today.

If able to read a glucose value then will write it to the app badge. If error in reading then clears badge.
@dennisgove
Copy link
Author

Actually, I don't think this will work while the app is closed.

@dennisgove
Copy link
Author

Nevermind. Confirmed that it properly updates the badge value when the app is running, closed and phone unlocked, closed and phone locked, closed and another app open. My previous comment was related to an error I saw related to setting the badge value when the app was closed.

@loudnate
Copy link
Collaborator

loudnate commented Dec 3, 2015

Thank you for adding this, Dennis. Please know that the example app is not intended to be use for therapy, but merely as an example and test harness for the xDripG5 framework.

I'm out of the country this week but I intend to provide support for Carthage and CocoaPods so you can easily build your own apps on top of this data.

On Dec 2, 2015, at 7:12 PM, Dennis Gove notifications@github.com wrote:

If able to read a glucose value then will write it to the app badge. If error in reading then clears badge.

Nothing fancy here but thought I'd share with you what I added today.

You can view, comment on, or merge this pull request online at:

#2

Commit Summary

Writes last read glucose to icon badge
File Changes

M xDripG5/AppDelegate.swift (11)
M xDripG5/ViewController.swift (10)
Patch Links:

https://github.com/loudnate/xDripG5/pull/2.patch
https://github.com/loudnate/xDripG5/pull/2.diff

Reply to this email directly or view it on GitHub.

@loudnate
Copy link
Collaborator

loudnate commented Dec 7, 2015

I appreciate the PR, but I'm not going to merge it into the test app simply because I want to keep it as minimal as possible for others to understand the code in context, especially for those who have expressed interest in porting this to other platforms.

I would love to link to your app in the README as a great example of some use cases that freeing this data provides.

🍻

@loudnate loudnate closed this Dec 7, 2015
@dennisgove
Copy link
Author

Thanks very much! I've put my project at https://github.com/dennisgove/glucose-badge. I'm happy to credit you in anyway you'd like - currently in the README.

@loudnate
Copy link
Collaborator

loudnate commented Dec 8, 2015

That's great! I will open an issue now to write the README, and remind myself to link to your project.

Another simple single-use app would be one to put live data into HealthKit, and then optionally bulk-delete records (supported in iOS 9) older than 3 hours once the Dexcom app inserts them.

@loudnate loudnate mentioned this pull request Dec 8, 2015
ps2 added a commit that referenced this pull request May 19, 2019
Fix compilations warnings, remove queue QOS (#119)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants