Is it possible to programmatically canning info.plist values in app?

I want to be able to change the value for "App Supports Always On Display (Watch)" from yes to no depending on a variable in the app.

We are in the middle of migrating our code over to swiftui so that our app appropriately uses the AOD display. however our users voiced distain for the AOD fallback screen.

So what we want to do is allow our beta testers to use the AOD feature by changing the value of the "App Supports Always On Display (Watch)" to true and for our production users keep it at false.

Is this possible?

Thanks

Replies

canning ?!?

AFAIK, you cannot change the info.plist itself (part of the bundle). Only read it.

See this very old post: https://stackoverflow.com/questions/12817272/editing-info-plist-possible-programmatically

Your users can turn off Always On per app: Go to Settings > Display & Brightness > Always On > Show Apps. Have them toggle your app off.

As Claude31 noted, you cannot do this programmatically. Either your app supports Always On, or it doesn't.