Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#498 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

Start by reading the public API for @microsoft/power-apps/app and the existing host integration described in the issue; the repository files and tests are not named here. Clarify how the SDK can request host actions in both the mobile app and browser player, including sign-out. Done means an exit API returns the user to the app list in both environments and supports the requested sign-out behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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
Ngôn ngữ chính
TypeScript
Star
516
Fork
145
Merge trung bình
23 giờ 41 phút
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/PowerAppsCodeApps

Tất cả issue của microsoft/PowerAppsCodeApps

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.