Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Webpacked app shows blank screen on iOS after splash screen #132

Closed
@YvesCandel

Description

@YvesCandel

The issue:

If we build our app for iOS using webpack, the app will briefly show a blank screen after the splash screen. If your app is extremely lightweight and you're using an emulator, you won't notice this, but if you run it on an iPhone 5 and your app has a bit of stuff included, you will be staring at this empty screen for several seconds.

We aligned our splash screen with our login screen, so it seamlessly transitions into the login screen which looks very neat. But if we use webpack, this transition is interrupted with a blank screen.

What could be the cause of this?

Steps to reproduce

I've forked the nativescript-sdk-examples-ng repository and included a delay in the AppComponent constructor, this is the best way to reproduce. The "release" branch seems to be the default, but make sure you're on the right branch for my commit. (https://github.com/YvesCandel/nativescript-sdk-examples-ng)

git clone https://github.com/YvesCandel/nativescript-sdk-examples-ng
cd nativescript-sdk-examples-ng
npm install

So if you now run it without webpack:

tns run ios

It will transition smoothly from the splash screen to the list of examples.

But if you run it with webpack:

npm run start-ios-bundle

You'll notice that the splash screen is briefly visible, a white blank screen after that (for 5 seconds, which is the delay I've built in) and then the list of examples shows.

This only happens on iOS and only with webpack builds. I've tried looking at the output code in the platforms folder to find any differences, but wasn't able to find any.

Does anyone have any suggestions as to why this is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions