All SMB· How-to

Add Widgets and Live Activities to an App With AI

How to add home screen widgets, Lock Screen widgets and Live Activities to an iPhone app with Rork: prompts, Apple's limits, data updates and real-device tests.

Rork adds home screen widgets, Lock Screen widgets and Live Activities to an iPhone app from a chat message: it writes the widget extension in Swift with WidgetKit and ActivityKit, adds it to your app's Xcode project, and ships it inside the same App Store build. You need an iPhone app in Swift and Rork Max. Widgets are where your app earns a place on the phone's screen, so this guide covers what to show, Apple's limits, and how to test.

Updated November 27, 2026. Published by Rork. Rork facts come from the Rork docs. Apple facts come from Apple's Live Activities and widget update documentation and its watchOS overview, read on that date.

Widget, Lock Screen widget or Live Activity?

What it shows How long Good for
Home Screen widget A glance at your app's data Until the person removes it Today's habits, next booking, balance
Lock Screen widget A smaller glance, above or below the clock Until removed A count, a progress ring, the next time
Live Activity One event happening now, on the Lock Screen and in the Dynamic Island Up to 8 hours active, then up to 4 more on the Lock Screen A delivery, a ride, a timer, a match score

The Live Activity limits are Apple's: "A Live Activity can be active for up to eight hours", and then "remains on the Lock Screen for a maximum of 12 hours" (Apple). Apple also shows Live Activities from your iPhone app at the top of the Smart Stack on a connected Apple Watch (Apple).

Pick by the question your user asks. "What is left today?" is a widget. "Where is my order right now?" is a Live Activity.

Why this needs a native app

A widget is not a page of your app. Apple's system draws it from a separate widget extension, written with SwiftUI and WidgetKit; Live Activities use the same extension with ActivityKit. A website cannot provide either: Rork's docs list "no home screen or lock screen widgets, no Live Activities, no Dynamic Island" among the limits of a web app (docs).

Rork writes iPhone apps in Swift with SwiftUI, and its docs name home screen and Lock Screen widgets, Live Activities and the Dynamic Island among the native features that gives you (docs). On Android, Rork's Kotlin apps can have home screen widgets too.

Step by step in Rork

1. Have an iPhone app with real data

A widget shows data the app already has. Build the app first: on rork.com, choose For iPhone, describe the product, check the screens in Design mode, and press Build on Rork Max. If your app is web or Android only, ask Rork to add an iPhone app to the project; it rebuilds the screens in SwiftUI with the same backend (docs).

2. Ask for the widget

Say what it shows, which sizes, and what a tap does:

Add a home screen widget in small and medium sizes. Small shows how
many habits are left today. Medium lists up to four of them with a
checkbox each. Tapping a habit name opens that habit in the app.

Rork adds a widget extension to the iPhone app's Xcode project and writes the widget views. Ask for Lock Screen versions in the same way:

Add a Lock Screen widget: a ring that fills as today's habits get
checked off

3. Ask for a Live Activity

A Live Activity needs a start, updates and an end. Spell out all three:

When a customer places an order, start a Live Activity that shows
the order status (received, preparing, out for delivery) and the
estimated time. Update it when the status changes and end it when
the order is delivered.

Apple requires a Live Activity to support every presentation: the Lock Screen, and the compact, minimal and expanded views in the Dynamic Island. The system picks which one to show (Apple). Ask Rork to design each so none looks like an afterthought.

4. Plan how the data updates

This is where widget ideas meet Apple's rules:

  • Widgets refresh on a budget. For a widget people view often, Apple says the daily budget "typically includes from 40 to 70 refreshes", roughly every 15 to 60 minutes, and timeline entries should be "at least about 5 minutes apart" (Apple). The app can ask for a reload when its data changes, and reloads while the app is in the foreground do not count. A widget is right for "today's list", wrong for a live stock ticker.
  • Live Activities cannot fetch. Apple says a Live Activity "can't access the network or receive location updates", and its data can't exceed 4 KB. The app updates it, or your server sends ActivityKit push notifications (Apple).
  • Server updates need a backend. For an order or a ride that changes on the server, ask Rork to add a backend function that sends the update. Rork Cloud gives you server-side functions and is free while in beta; Supabase and Firebase also work.

5. Make it interactive, within limits

Widgets and Live Activities can hold buttons and toggles, such as checking off a habit or pausing a timer. Apple adds interactivity with Button and Toggle (Apple). Text fields, scrolling lists and multi-step flows belong in the app.

Make the checkboxes in the medium widget work without opening the
app, and update the streak on the first screen when one is checked

6. Test on a real iPhone

The cloud iOS simulator runs your app while you build. Widgets and Live Activities are best judged where your users will see them: on a real Home Screen, Lock Screen and Dynamic Island. Rork's simulator also cannot receive Apple push notifications, so server-driven Live Activity updates need a phone (docs). Three ways in:

  1. Rork Companion on Windows or Mac installs the app over USB: press Run on your device above the simulator.
  2. The Rork Max iPhone app, for accounts that have it, installs apps on your Home Screen, where you can try widgets and the Dynamic Island.
  3. TestFlight: submit a build and share the beta invite link.

Add the widget from the Home Screen the way a user would, and leave it there for a day to see how it refreshes.

7. Publish

The widget extension ships inside your iPhone app. Open Publish, then Submit to App Store, sign in with your Apple Developer account and press Start Submission; the build lands in App Store Connect and TestFlight, and you send it to review there (docs). Add a screenshot that shows the widget, since it is a reason to download. Run the AI App Store Reviewer first; it is advisory and never promises approval.

Widgets also help with Apple's minimum-functionality rule. An app that offers a widget, reminders and offline data is clearly more than a website, which is what Guideline 4.2 asks for.

Ideas by app type

  • Booking app: a widget with the next appointment; a Live Activity on the day, counting down to it.
  • Delivery or ordering: a Live Activity from order to doorstep.
  • Fitness: a Lock Screen ring for weekly goals; a Live Activity for a running workout timer.
  • Field service: a widget with the next job's address and time.
  • Finance or sales: a widget with today's total, refreshed a few times an hour.

Limits to know before you start

  • Rork Max. iOS widgets are included in every Rork Max option, from $20 a month for 100 credits; the Free plan does not build them (plans).
  • iPhone app in Swift. Widgets and Live Activities are part of a native app. Web apps cannot have them.
  • Apple's budget wins. A widget does not refresh every second, however you prompt it.
  • Eight hours. A Live Activity is for an event, not a permanent banner.
  • Test on a device. Push-driven updates and the real Dynamic Island need a phone.

For the rest of the iPhone workflow, read AI iOS app builder. To put the same glance on the wrist, see Apple Watch app builder.

Frequently asked questions

Can an AI app builder make iPhone widgets?+
Yes, if it writes native Swift. Widgets and Live Activities are built with Apple's WidgetKit and ActivityKit inside a widget extension of the app. Rork writes iPhone apps in Swift and adds the widget to the app's Xcode project when you ask for one in chat.
What is the difference between a widget and a Live Activity?+
A widget shows your app's information on the Home Screen or Lock Screen all the time and refreshes on a schedule. A Live Activity follows one event that is happening now, such as a delivery or a timer, on the Lock Screen and in the Dynamic Island, and Apple ends it after at most eight hours.
Which Rork plan includes iOS widgets?+
Rork Max, from $20 a month for 100 credits. Every Rork Max option includes iOS widgets, Apple Watch, iPad and Vision Pro apps. The Free plan is for designing your app's screens.
Can a web app or a website have a widget?+
No. Rork's docs list home screen and Lock Screen widgets, Live Activities and the Dynamic Island among the things a web app cannot do. You need a native app on the phone, which in Rork means an iPhone app in Swift or an Android app in Kotlin.
How often does an iPhone widget update?+
Apple sets a budget. For a widget people view often, Apple says the daily budget is typically 40 to 70 refreshes, roughly every 15 to 60 minutes. The app can also ask for a reload when its data changes, and a widget updates without counting against the budget while its app is in the foreground.
Do Live Activities need push notifications?+
Only when the update comes from a server while the app is in the background. The app can start and update a Live Activity itself; for updates from your backend, such as an order status, Apple uses ActivityKit push notifications. Test those on a real iPhone.