Allow code apps to configure the "new version available" update banner (silent auto-update / suppression) #383
andrewtheart
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Type: Feature request / enhancement
Summary
When a new version of a code app is published (
pac code push/power-apps push), users who load the app on an outdated cached build see the host-rendered banner:This appears the first time a user opens the app after an update they haven't picked up yet. It does not show after they refresh or load the same link later (whether or not they click the Refresh button).
There is currently no supported way for a code app to control this behavior. We'd like an option to either force a silent auto-update (reload to latest with no prompt) or keep the current manual banner - ideally configurable per app.
Current behavior
apps.powerapps.com), not by the code app itself. Because it's cross-origin, app code/CSS cannot interact with it.@microsoft/power-appsSDK exposes onlysetConfig({ logger })andgetContext()- no version/update API.power.config.jsoncontains only deployment metadata (appId,environmentId,buildPath, data sources) - no update-behavior setting.Net result: there is no maker, admin, environment, SDK, or config surface to suppress the banner or force a silent update.
Desired behavior
A supported, documented way to configure update behavior for a code app, for example one of:
A per-app setting (e.g. a field in
power.config.jsonor an SDK config option) would let teams choose the mode and revert if needed.Use case / motivation
Primary motivation - deep links with custom query parameters run against stale code.
We send users deep links to the app's play URL with custom query parameters that drive in-app routing and behavior. When a user opens one of these links on an outdated cached build, the app's routing code reads and acts on those parameters before the update banner is ever shown - so the stale version handles the request instead of the current code. A silent auto-update (or a forced refresh that completes before routing runs) would guarantee that the latest build processes these parameterized links.
Secondary motivations.
Proposed shape (illustrative)
…or an SDK option:
Environment
@microsoft/power-appsclient library.https://apps.powerapps.com/play/e/{environmentId}/app/{appId}.Beta Was this translation helpful? Give feedback.
All reactions