Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ - (void)viewDidAppear:(BOOL)animated {
[[_engine.get() lifecycleChannel] sendMessage:@"AppLifecycleState.resumed"];

[super viewDidAppear:animated];
if (UIApplication.sharedApplication.applicationState == UIApplicationStateBackground) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this case, shoudn't we just not sent the AppLifecycleState.resumed message?

@pepsin pepsin Jan 8, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's much better,will update the code.

[[_engine.get() lifecycleChannel] sendMessage:@"AppLifecycleState.paused"];
}
}

- (void)viewWillDisappear:(BOOL)animated {
Expand Down