-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Widget Updates #2013
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
Widget Updates #2013
Conversation
|
thank you for doing this, hope this gets approved soon |
|
@biesbjerg thank you for the feedback! Yes, it currently requires building with Xcode 15, but I’ll drop that requirement and open a separate Pull Request with the iOS 17/Xcode 15 changes to be merged after Xcode 15 releases. As for the lockscreen appearance on iOS 16, that’s definitely not ideal — I will look into this. Thanks again for testing and providing feedback! |
|
Thanks Cameron. Let me know when you think this is ready. Excited to see this in Loop! |
|
had a side question for Cameron - having a colored loop icon (red/yellow/green) would have the same effect but I think iOS prevents coloring of the LS widgets...right? |
|
@Camji55 My pleasure — Thank you for working on it! My initial experience is that the widgets show stale/no data quite frequently, which haven't really been an issue previously. I theorise that it's because of the lock screen widget using up the update budget (daily budget typically includes 40-70 refreshes). Without this PR, to check glucose etc, I would typically tap the screen to wake up device, swipe right to reveal the widget, which I guess uses less of the budget than needing to keep the lock screen widget up to date all the time — does that sound plausible? |
|
@bfeinzimer thank you for the suggestion! The problem with having last updated text is finding a place to put it — On the Accessory Inline and Accessory Circular widgets there is no room for this info. As for the Accessory Rectangular widget, you’re correct that the color of the Loop status circle would not change on the lockscreen. I may however be able to use a broken circle instead of changing the color. |
|
@biesbjerg this is a problem I’ve noticed as well. The 40-70 refreshes is about 4-6x less than the number of new CGM values reported to loop by a standard 5min CGM interval. This is less than ideal and as far as I can tell there isn’t a way around it. A couple ideas I have to possibly help this scenario though neither are great:
Happy to hear any suggestions! |
|
@ps2 given some of the feedback I wonder if it’s worth separating the lockscreen widgets and the larger homescreen widget into separate PRs. |
|
@Camji55 Yeah, if you want to land the homescreen widget while you see if we can find a solution for the lockscreen widget using up more refresh cycles, that's fine. Do we end up using more refresh budget with this PR even if the user doesn't add the lockscreen widgets to their lockscreen? If not, then I don't see a problem with landing it, and then continuing to look for improvements. |
|
I just built the latest dev on iOS 16 using Xcode 14, but don't see any of the lock screen widgets to add - do I need to be using Xcode 15? I tried dev build on Xcode 15 to my iOS 16 device and an iOS 17 simulator from Xcode 15 but no lockscreen widget was present. |
|
@bfeinzimer I'm not sure why this PR status shows as merged — #2027 is the one that has been merged (which does not contain lockscreen widgets) |
|
gotcha. still working out the visual bugs or the refresh on the the lock screen widget? eagerly awaiting this :P |
Looks like it might be time for these updates. I was going to try to tackle it myself but looks like you're aware of it already. |
|
any update for the lock screen widget, esp now with ios 17 out? |
was there ever an update to this PR? thanks, eagerly awaiting this! |
|
@IsThisPaul & @bfeinzimer, I've opened a PR for the Xcode 15 updates to the homescreen widgets #2078. @bfeinzimer, as for lockscreen widget there still needs to be some experimentation and a larger discussion around safety. We're limited to refreshes by the system to between 40 and 70 per day. With a lockscreen widget, this refresh budget gets eaten up very quickly and then the entire rest of the day you're left with expired/invalid data as it can no longer refresh with current data. This problem is not exclusive to the lockscreen widget; the homescreen widget also has the same limited number of refreshes per day which is why it can often be not as up-to-date as the legacy iOS system widgets as noted here by @biesbjerg. |
|
thanks for detailing it out…it does make me curious as how the dexcom in house app widgets handle this limitation. any ideas?
…
On Sep 29, 2023 at 12:40 PM, <Cameron Ingham ***@***.***)> wrote:
@IsThisPaul (https://github.com/IsThisPaul) & @bfeinzimer (https://github.com/bfeinzimer), I've opened a PR for the Xcode 15 updates to the homescreen widgets #2078 (#2078).
@bfeinzimer (https://github.com/bfeinzimer), as for lockscreen widget there still needs to be some experimentation and a larger discussion around safety. We're limited to refreshes by the system to between 40 and 70 per day (https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date#Plan-reloads-within-a-budget). With a lockscreen widget, this refresh budget gets eaten up very quickly and then the entire rest of the day you're left with expired/invalid data as it can no longer refresh with current data. This problem is not exclusive to the lockscreen widget; the homescreen widget also has the same limited number of refreshes per day which is why it can often be not as up-to-date as the legacy iOS system widgets as noted here (#2027 (comment)) by @biesbjerg (https://github.com/biesbjerg).
—
Reply to this email directly, view it on GitHub (#2013 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AC4HFCFOLI6SS3RJWTKA3MTX44P2DANCNFSM6AAAAAAZU2K5RI).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
@bfeinzimer are you talking about the Dexcom home screen widgets? I don't think they have a a Lock Screen one. In my experience Dexcom's Home Screen widgets have the same issue with stale data. |
|
I agree the data refreshes always seemed stale. How many are allowed on apple watch faces as I "feel" they perform better
…
On Sep 29, 2023 at 2:14 PM, <David Cintron ***@***.***)> wrote:
@bfeinzimer (https://github.com/bfeinzimer) are you talking about the Dexcom home screen widgets? I don't think they have a a Lock Screen one. In my experience Dexcom's Home Screen widgets have the same issue with stale data.
—
Reply to this email directly, view it on GitHub (#2013 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AC4HFCFQNNWS7MBOQRQHY5DX4422PANCNFSM6AAAAAAZU2K5RI).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
From Apple Developer - Complications
So a limited number of times ¯_(ツ)_/¯ |




Medium Widget
3x Lockscreen Widgets