Skip to content

Conversation

@JeffTsang
Copy link

This is a useful event to prepare your app before it enters the foreground on iOS.

@JeffTsang JeffTsang requested a review from a team as a code owner October 11, 2025 05:30
@github-actions
Copy link
Contributor

Package Changes Through 5872b6e

There are 1 changes which include tao with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tao 0.34.3 0.35.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog
Copy link
Member

I think we should use Event::Resumed for this.. it would also match the Android behavior (though that one needs a bug fix to not call the method on the first run)

@JeffTsang
Copy link
Author

Both events may have their own use cases, but if applicationWillEnterForeground is more closely aligned with Event::Resumed, it can be changed.

@JeffTsang JeffTsang changed the title feat(ios): Add WillEnterForeground event for iOS fix(ios): Use WillEnterForeground instead of DidBecomeActive for Event::Resumed in iOS Oct 16, 2025
@JeffTsang
Copy link
Author

@lucasfernog I've updated the code to use Event::Resumed.

@lucasfernog
Copy link
Member

btw I think Event::NewEvents(StartCause::Poll) is a good replacement for Event::Resumed (that's what we use in tauri currently).
This change can be seen as a breaking change so we'll wait to release it on 0.35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants