iOS Question slower app opening than other apps

sorex

Expert
Licensed User
Longtime User
Hello,

When I open one of the apps made by B4A I see the app load like this

(White) empty screen
a white bar appears for a few miliseconds with time, wifi, battery info
the actual app appears


When I open one of the apps that's default on the iPhone 4s they open instantly.

What is the difference between the 2?

are the pure objC compiled ones just a lot faster than what B4A creates ?
 

sorex

Expert
Licensed User
Longtime User
yes, it's visible in the video aswell.

altho when I run your app on my iphone 4s that white bar is there for almost 2 seconds.

it almost looks that the debugger connect page is still inbetween even in release mode.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
It also happends on an empty app that just loads a layout with 1 label.
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Sorry, but I really can't see this issue with an empty app ...
are the pure objC compiled ones just a lot faster than what B4A creates ?

B4i generates also Objective C code
 
Last edited:
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0

sorex

Expert
Licensed User
Longtime User
it is the same screen as when the app is trying to connect to the ide but without the spinner and IP text.

can I record my iphone screen somehow?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
sure but like I said it's just an empty project with a label.

B4X:
Private Sub Application_Start (Nav As NavigationController)
    NavControl = Nav
    Page1.Initialize("Page1")
    NavControl.ShowPage(Page1)
    Page1.RootPanel.LoadLayout("main")   
End Sub
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
I recorded it with my phone, a real blurred mess as it is too small to focus on but I'll see if I can extract a screenshot of it.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
I created an image based on the end result.

the problem is the black color I guess, can we force it to the background color that will be used in the app?

screenshot.png

it is also happening when using that real fullscreen mode, you get a non fullscreen display first
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
I created an image based on the end result.

the problem is the black color I guess, can we force it to the background color that will be used in the app?

View attachment 36773

it is also happening when using that real fullscreen mode, you get a non fullscreen display first


Try to change your launch image... as erel has already recommendet
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
I'm reading that post now but if these images are white why do I get a black screen when opening my app and Mike's Wild Camping app?
 
Upvote 0
Top