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

Don't show splashscreen when using standalone CDVViewController #1014

Merged
merged 1 commit into from
Jan 31, 2021

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Oct 28, 2020

Platforms affected

iOS

Motivation and Context

Closes #929

Description

When using CDVViewController via CordovaLib as a library, the app might already be loaded and not need to show the launch storyboard again.

Rather than unconditionally showing the splashscreen until the webview content has loaded, make it initially invisible. Then in the project template, make it visible so that it continues working as expected for apps using the Cordova CLI.

Testing

Manual testing

Checklist

  • I've run the tests to see all new and existing tests pass
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)

When using CDVViewController via CordovaLib as a library, the app might
already be loaded and not need to show the launch storyboard again.

Rather than unconditionally showing the splashscreen until the webview
content has loaded, make it initially invisible. Then in the project
template, make it visible so that it continues working as expected for
apps using the Cordova CLI.

Closes apache#929.
@dpogue dpogue changed the title fix(splashscreen): Don't show splashscreen when using standalone CDVViewController Don't show splashscreen when using standalone CDVViewController Oct 28, 2020
@dpogue dpogue added this to the 6.1.2 milestone Nov 25, 2020
Copy link
Member

@NiklasMerz NiklasMerz left a comment

Choose a reason for hiding this comment

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

I am still an ObjectiveC noob but trying to learn stuff. Why not use the hidden property here?

https://developer.apple.com/documentation/uikit/uiview/1622585-hidden

Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

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

LGTM

@NiklasMerz NiklasMerz merged commit ffdcc5a into apache:master Jan 31, 2021
@dpogue dpogue deleted the splashview-fix branch September 22, 2021 02:17
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.

Cannot disable splashscreen in standalone CDVViewController
3 participants