cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MikeLSS
Frequent Visitor

How to move to the Home screen of the user's device

Hi All,

 

In our scenario, at the end of my OnSelect code, I need it to end by switching to the Home screen of the user's device. Is it possible? If so, can you tell me how to code that?

 

Thanks in advance.

2 REPLIES 2
RezaDorrani
Dual Super User
Dual Super User

Hi @MikeLSS 

 

I am assuming you want to exit the current PowerApp

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-exit

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Thanks, Reza, but I tried the Exit function.  It helped a little bit, but it remains in the app list in PowerApps.

 

I want it to go to the Home screen of the device's OS.  Currently, I use 

Lauch(https://www.google.com/)

It works, but I prefer to going to the Home screen.

 

What I'm trying to do is to receive a notification from another app that uses the PowerAppsNotification.SendPushNotification() connection.

 

I put code in the OnStart property like this:

Navigate(
    MP_PhotoScreen1,
    None,
    If(
        !IsBlank(Param("notifKey")),
        {
            StartPage1: false,
            RequestID: Param("notifKey")
        },
        {StartPage1: true}
    )
)

However, unless this app is close and PowerApps is inactive, the notification isn't triggerered.

If you know another workaround, also please let me know.

 

Mike

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (5,159)