RORK LABJP
PLAY — Google Play's target API level 36 requirement took effect yesterday, August 31. From today, new apps and updates must target Android 16VISIBILITY — Apps still on API 35 stay listed but disappear for users on newer Android versions. No error is raised; new installs simply fade, which makes the change easy to missEXTENSION — If you missed the deadline, an extension through November 1, 2026 can be requested in Play Console — best filed alongside a concrete migration planAPPLE — On the Apple side, the event lands September 9 and iOS 27 is reported to ship September 14. Testing generated apps on iOS 27 hardware before release week is time well spentEXPO — Expo released expo-paste-input on August 28, a native module that brings image, GIF, and sticker paste to React Native TextInputEAS — EAS Observe reached general availability on August 20, putting crash and performance monitoring on the same EAS platform as builds and updatesPLAY — Google Play's target API level 36 requirement took effect yesterday, August 31. From today, new apps and updates must target Android 16VISIBILITY — Apps still on API 35 stay listed but disappear for users on newer Android versions. No error is raised; new installs simply fade, which makes the change easy to missEXTENSION — If you missed the deadline, an extension through November 1, 2026 can be requested in Play Console — best filed alongside a concrete migration planAPPLE — On the Apple side, the event lands September 9 and iOS 27 is reported to ship September 14. Testing generated apps on iOS 27 hardware before release week is time well spentEXPO — Expo released expo-paste-input on August 28, a native module that brings image, GIF, and sticker paste to React Native TextInputEAS — EAS Observe reached general availability on August 20, putting crash and performance monitoring on the same EAS platform as builds and updates
Articles/Dev Tools
Dev Tools/2026-05-10Advanced

Why Your Rork iOS Widget Keeps Showing Stale Data — Rebuilding the App Group + WidgetKit Pipeline That Actually Refreshes

Your Rork-built iOS widget shows yesterday's data. Rebuild the App Group, shared UserDefaults, and timeline reload pipeline so parent and widget share state.

Rork547WidgetKit10App Group4iOS110Widget ExtensionReact Native234Expo Modules2

Premium Article

A few hours after I published the monthly update for one of my wallpaper apps, the home-screen widget kept showing last month's "daily wallpaper". Open the app, and the latest image was right there. Glance at the widget, and it was a full day behind. The first user message that night went something like, "is the widget broken?" and I was up far later than I planned, because telling a paying user "please reinstall" is the worst answer a small developer can give.

WidgetKit's documentation gives you a single sentence on this: "use an App Group to share data with the parent app." But once you actually graft a Widget Extension onto a Rork-generated React Native project, that one line hides three traps. The App Group is silently misconfigured, UserDefaults reads and writes don't agree on which keychain they're hitting, and the timeline reload runs at the wrong moment. This walkthrough fixes all three so that the parent app and the widget behave like one system in production, instead of two strangers passing each other on the home screen.

What "the widget is stuck on yesterday" actually means

Every iOS app, including a Widget Extension grafted onto a Rork project, runs in its own sandbox. Your widget looks like part of the parent app on the home screen, but it ships as a separate process with a separate bundle ID. iOS treats it as a separate citizen with its own data jar.

Which means: anything written to UserDefaults.standard in the parent app reads back as nil from inside the widget. That isn't a bug in your code, it's a contract between you and iOS. To cross the sandbox boundary, you have to ask Apple for an App Group, which gives both targets a shared keyed store and a shared file container. The first time I built a widget for an app, I didn't go through the App Group setup and spent half a day staring at a nil return value before realizing the storage I was writing to wasn't visible from the other side of the boundary.

There's a deeper consequence too. WidgetKit caches the last rendered timeline. If the parent app updates a value but never tells WidgetKit "the underlying data has changed", the widget will keep using its cached timeline until the cached entry's policy expires. So even when the App Group is wired up correctly, if you don't pair writes with explicit reload calls, the widget appears broken to the user — even though the data is fine in the shared container.

Issuing the App Group — don't reuse your bundle ID

The App Group is a separate identifier from the parent app's bundle ID, prefixed with group.. The convention is group.{reverse-domain}.{appname}.shared. The first mistake I see people make is reusing com.example.myapp directly as their App Group string. App Groups are a different namespace entirely — they need to be registered separately.

The setup goes:

  1. Open the Apple Developer Portal → Identifiers → App Groups, and register a new one (e.g. group.com.example.myapp.shared).
  2. On both the parent app's and the Widget Extension's identifiers, attach this App Group under Capabilities.
  3. In Xcode → Signing & Capabilities for both targets, add the "App Groups" capability and tick the ID you just registered.
  4. Confirm both targets' *.entitlements files now contain:
<key>com.apple.security.application-groups</key>
<array>
  <string>group.com.example.myapp.shared</string>
</array>

If the entitlement is missing on one of the two targets, you don't get a clean compile-time error. You get the worst possible runtime: writes appear to succeed (because you wrote into a different, target-local UserDefaults), reads return nil (because the other side is looking at the actual shared container, which is empty), and you waste hours wondering why your code doesn't work. After running an indie app business since 2014, I now check both entitlements files first whenever I add a new extension, before I even open Xcode's signing UI.

A small ritual I picked up: keep the App Group ID in a single Swift constant, named so it shows up in code search. That way when something is broken, you grep the codebase and immediately see all the call sites that depend on that ID, instead of hunting through Info.plist, entitlements files, and SwiftUI views one at a time.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Fold App Group, shared UserDefaults, and timeline reloads into one design that stops the widget from getting stuck on stale data
Implementation code for working with the system refresh budget, instant updates via App Intent, and deep-linking from widgetURL into Expo Router
The distribution-profile trap that passes TestFlight but breaks the App Store build, plus the exact pre-submission check
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $15 for lifetime access
View Membership →

Related Articles

Dev Tools2026-07-27
When to Raise Your Minimum iOS Version — Count Leftover Branches, Not User Percentages
Judging a minimum OS bump by usage share produces the same answer every year, so the decision never happens. Here is the annotation convention, the sweep script that counts how many branches each candidate floor would retire, and what to watch for 30 days after.
Dev Tools2026-06-22
Your Daily Reminder Stops Firing After a Couple of Weeks — iOS's Invisible 64-Notification Cap
When a daily reminder built with Rork (Expo) goes silent after a while, the cause is usually iOS's 64 pending-notification limit. Design a repeating calendar trigger for fixed messages and a rolling reschedule for daily-changing content, with working code that survives DST and multiple reminders.
Dev Tools2026-06-15
Putting a Working Button in a Rork App's Widget — Implementing App Intents So a Tap Acts Without Opening the App
How to put a button in a Rork-generated Expo app's widget that changes state without launching the app. We wire App Intents and WidgetKit together through an App Group, all the way to reloadTimelines — including the two places I lost real time.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →