Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): restore compatibility for Ti.App._resumeRestart() #13989

Merged
merged 3 commits into from Feb 15, 2024

Conversation

hansemannn
Copy link
Collaborator

@hansemannn hansemannn commented Feb 13, 2024

Fixes #13988

Test Case:

const win = Ti.UI.createWindow({
	backgroundColor: '#fff'
});

win.addEventListener('open', () => console.warn('OPEN'));
win.addEventListener('focus', () => console.warn('FOCUS'));
win.addEventListener('blur', () => console.warn('BLUR'));
win.addEventListener('close', () => console.warn('CLOSE'));

const btn = Ti.UI.createButton({
	title: 'Restart app'
});

btn.addEventListener('click', () => {
	Ti.App._restart();
});

win.add(btn);
win.open();

Expected Behavior

The app should show the open and focus events on app start and blur -> close -> open -> focus after hitting the restart button.

@hansemannn
Copy link
Collaborator Author

Tested by the community in Slack, thx!

@hansemannn hansemannn merged commit 3a44b3d into tidev:master Feb 15, 2024
5 checks passed
@hansemannn hansemannn deleted the fix/ios/liveview-v1-compat branch February 15, 2024 12:07
hansemannn added a commit that referenced this pull request Feb 15, 2024
* fix(ios): restore compatibility for Ti.App._resumeRestart()

* chore: save session configuration, add warning for private API usage

* chore: make sure to select the foreground/active scene, not only the first
hansemannn added a commit that referenced this pull request May 26, 2024
This reverts commit bfc87a6.

Revert "fix(ios): fix debug issues with scenes (#13979)"

This reverts commit 8bcd5c3.

Revert "fix(ios): fix various issues related to the scene migration (#13981)"

This reverts commit 6e40edb.

Revert "fix(ios): restore compatibility for Ti.App._resumeRestart() (#13989)"

This reverts commit 3a44b3d.

Revert "fix(ios): fix some open issues related to scenes (#14020)"

This reverts commit a0a3aea.

chore: restore start sequence
hansemannn added a commit that referenced this pull request May 26, 2024
This reverts commit bfc87a6.

Revert "fix(ios): fix debug issues with scenes (#13979)"

This reverts commit 8bcd5c3.

Revert "fix(ios): fix various issues related to the scene migration (#13981)"

This reverts commit 6e40edb.

Revert "fix(ios): restore compatibility for Ti.App._resumeRestart() (#13989)"

This reverts commit 3a44b3d.

Revert "fix(ios): fix some open issues related to scenes (#14020)"

This reverts commit a0a3aea.

chore: restore start sequence

# Conflicts:
#	iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.h
#	iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m
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.

Crash with LiveView enabled on 12.3.0.RC2
1 participant