Xamarin.forms: [Bug] OnAppearing does not run when App was in background or Screen Off

Created on 3 Oct 2019  路  6Comments  路  Source: xamarin/Xamarin.Forms

OnAppearing does not run when you put the app in background and resume.
The same thing happens if you turn the device screen off and then back on.

Steps to Reproduce

  1. Launch App, Dismiss Dialog
  2. Turn Off Device Screen.
  3. Turn On Device Screen.

Expected Behavior

OnAppearing should run when returning to app.

Actual Behavior

OnAppearing does not run when returning to app.

Basic Information

  • Version with issue: 4.2
  • Last known good version: 4.1
  • IDE: VS 2019
  • Platform Target Frameworks: Android

    • Android: 8.1
  • Affected Devices: ALL
    OnAppearingFailsOnReturn.zip

4.1.0 2 regression Android bug

All 6 comments

Fun fact

These events all fire correctly if you're using shell

Is this going to be fixed, or does this "fun fact" mean we are screwed and need to use Shell. Moving to shell is not much of an option for us at this point. We have many large apps working this way and are stuck on older version of Forms.

@PureWeen Ping!! My application depends on this working and I see that I will not be able to exit 3.6.x until this is fixed.

@lavilaso it looks like this one didn't get labeled quite right :-/

I've marked it as a regression and moved it into todo so it can get addressed

@PureWeen PureWeen @samhouts Ping...

closed by #9257

Was this page helpful?
0 / 5 - 0 ratings