Skip to content

[Android] OnAppearing only called on 1st tab of AppShell home page #9531

Description

@davefxy

Description

On the Android, when I have 2 tabs defined for an AppShell homepage, the OnAppearing method doesn't get called for the ContentPage when I select the 2nd tab. It does get called on the 1st tab contentpage which is initially called when the home page is displayed .
I am using Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.4.0 Preview 1.0 on Windows 11.

Steps to Reproduce

  1. Compile the attached app for an Android tablet.
  2. Place a breakpoint at line 14 (OnAppearing) in DogsPage.xaml.cs
  3. Run the app on an Android device(i.e. Samaung Galaxy S7, Android 12, API 31)
  4. Select the Dogs tab. It will not break at the OnAppearing method in DogPage.xaml.cs

Version with bug

6.0.312

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12, API 31

Did you find any workaround?

No

Attached app

Xaminals.zip

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyoutarea-core-lifecycleXPlat and Native UIApplicationDelegate/Activity/Window lifecycle eventsp/2Work that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versions/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions