Skip to content

fix(ios): Use WillEnterForeground instead of DidBecomeActive for Event::Resumed in iOS - #1146

Merged
FabianLars merged 10 commits into
tauri-apps:devfrom
JeffTsang:feat/will-enter-foreground
Mar 22, 2026
Merged

fix(ios): Use WillEnterForeground instead of DidBecomeActive for Event::Resumed in iOS#1146
FabianLars merged 10 commits into
tauri-apps:devfrom
JeffTsang:feat/will-enter-foreground

Conversation

@JeffTsang

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through 853080e

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.8 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

Comment thread .changes/will-enter-foreground.md Outdated
@lucasfernog

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor Author

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

@lucasfernog

Copy link
Copy Markdown
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

@FabianLars
FabianLars merged commit 1804001 into tauri-apps:dev Mar 22, 2026
20 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 22, 2026
Da-NKP pushed a commit to tactile-eng/tao that referenced this pull request Aug 21, 2026
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.

3 participants