Skip to content

[Android] View._onDetached called twice when app is suspended. #1543

@x4080

Description

@x4080

Hi, I wondered if this is intended? To reproduce :

  • just add listview with content
  • I add console.log in listview-android
    public _onDetached(force?: boolean) {
  console.log('detached');
}

and when we click back button on android (to go to home screen), it will called twice. I dont know about iOS since going to home screen seems not doing suspending/ quitting

btw using back button in android seems still retain all the previous values in the javascript ? So the activity is not recreated (at least the javascript) ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions