Skip to content

[Feature request] Exit / close function for code apps (like Power Fx Exit()) #498

Closed

Description

@PaulK975

Describe the bug

Canvas apps can return the user to the app list with Exit() (and sign out with Exit(true)). Code apps have no equivalent: @microsoft/power-apps 1.5.0 only offers getContext, setConfig, data access and telemetry. Inside the player the app is a cross-origin iframe, so it can't close itself or navigate the host.

Request: add exit(options?: { signOut?: boolean }) to @microsoft/power-apps/app that asks the host to close the app — in the Power Apps mobile app back to the app list, in the browser player the same behaviour as canvas Exit().

Why: mobile-first code apps (bottom navigation) need an explicit "Exit app" action; the Android back button walks back page by page through the app's history first. Shared devices need Exit(true) for sign-out.

Environment information

  • pa 1.3.0, @microsoft/power-apps 1.5.0, Power Apps Android app.
  • CodeApp used via Power Apps Android Mobile App

Activity

  1. ergonza93 commented on Oct 20, 2026

    @ergonza93
    Collaborator

    Moving this to the Ideas section of discussions

  2. locked and limited conversation to collaborators on Oct 20, 2026
  3. converted this issue into a discussion #505 on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions