In IOS, While Launching the app from another app(Deep linking) for few seconds the last activity screen appeared

Mane, PRASHANT GORAKH 101 Reputation points
2023-03-27T10:32:18.4733333+00:00

I have created 2 applications using .NET MAUI,
in first app, there are two pages which are LoginPage and HomePage.
first it will open LoginPage and then after providing user credentials it will redirect to Homepage. there I have did some token based login implementation.
after logout I came to LoginPage and kept this app in the background state and open the second app
and through second app I'm Launching the first app, there I'm providing user details and token and did some code for auto login
but while Launching the app LoginPage (last activity screen) is displayed for few seconds and then landed on HomePage

so I have added one more page to verify and did the same thing and this time also the new page was appeared for few seconds

I want to open the Homepage without showing last activity screen.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,392 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,656 Reputation points Microsoft Vendor
    2023-03-28T06:32:25.4533333+00:00

    Hello,

    after logout I came to LoginPage and kept this app in the background state

    When you set the app into background mode, the app is not dead. Deep linking will wake up the app from background and display the previous LoginPage. It's the default behavior from Apple's design. Please watch Apple's official video: Extend Your App’s Presence with Deep Linking - WWDC17 - Videos - Apple Developer(the sample at around 1:02 shows that the previous page was opened)

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.