Hi,
I have a problem from time with my App and I would like to fix it :)
When the App start and appear Splash screen, one times the Ap not start ... Especially when internet connection is not good (slow or noy connection) .
Why this happens? I've not modified splash system... almost always works properly, in theory if one time work it must always work...
Is posible programming if takes more than 8 seconds (for example) for open App it automatically closed?
Thank you :)
I have a problem from time with my App and I would like to fix it :)
When the App start and appear Splash screen, one times the Ap not start ... Especially when internet connection is not good (slow or noy connection) .
Why this happens? I've not modified splash system... almost always works properly, in theory if one time work it must always work...
Is posible programming if takes more than 8 seconds (for example) for open App it automatically closed?
Thank you :)
- 29 Posts
- 0 Reply Likes
Posted 4 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
So, the splashscreen appears, then sometimes the app "doesn't start"? What does that mean? Does the splash screen stay on? Does it disappear?
- do you have a delay with autohide, or do you dismiss the splashscreen manually using the splashscreen plugin's hide() method?
- do you fetch sources and/or data from a remote server, or is everything present locally?
- do you have a delay with autohide, or do you dismiss the splashscreen manually using the splashscreen plugin's hide() method?
- do you fetch sources and/or data from a remote server, or is everything present locally?
- 29 Posts
- 0 Reply Likes
Hi Petra,
Thanks for help me...
Well... First, when I open my app, starting appear the splash screen.
Sometimes it's blocked and not redirected to the first html file.
The people can't use my app... they must to close app and reopen until it work.
But nobody knows you have to restart it, most think that does not work.
The first Html page, I setting in my config.xml (), connect by Ajax to my server and if have open session in app it redirected home.html... and if have the session don't open redirected to register.html...
Why have this problem? Why the splash it crashes?
I think best solution is every 8 seconds close splash screen or refresh splash screen... but where is posible change files of splashscreen?
Thanks!!!! :)
Thanks for help me...
Well... First, when I open my app, starting appear the splash screen.
Sometimes it's blocked and not redirected to the first html file.
The people can't use my app... they must to close app and reopen until it work.
But nobody knows you have to restart it, most think that does not work.
The first Html page, I setting in my config.xml (), connect by Ajax to my server and if have open session in app it redirected home.html... and if have the session don't open redirected to register.html...
Why have this problem? Why the splash it crashes?
I think best solution is every 8 seconds close splash screen or refresh splash screen... but where is posible change files of splashscreen?
Thanks!!!! :)
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
I think best solution is every 8 seconds close splash screen or refresh splash screenI think the best solution is to find the cause of the issue and remove that cause. Or do you really want to leave the problem in the app, and repeat the problem every eight seconds?
Let's see: I have really no idea what you mean by this:
The first Html page, I setting in my config.xml (), connect by Ajax to my server and if have open session in app it redirected home.html... and if have the session don't open redirected to register.html...
Perhaps you wanted to show some code inside parenthesis. And possibly you failed to read the instructions under "some HTML allowed", which is why the code doesn't show.
If your zip file is available online somewhere, please post its url and I'll be happy to have a look.
- 29 Posts
- 0 Reply Likes
Hi Petra,
I have prepared a .zip file with my app. I deleted all unnecessary files and codes so that only you can view the config.xml and the code that starts the app.
Link: http://tiendamuaythai.es/problem-app.zip
You can see in config.xml the app start with inici.html file.
In this file (to fix the problem, but I still have not fixed) I only put a code for redirect after 1 second to start.html file. I doing it to have the page after splash screen very clean, without codes, for try to fix problem...
In the start.html file you can see all plugins links and the link to JavaScript file startapp.js. This file request by ajax script on my server if the session of user is open.
If is open redirect to index page, if the session are closed it redirect to login page.
Is simple and work good!!! Only I have a problem with the spash screen... 20% of times it crashes, splash remain fixed on screen, and does not load inici.html page... :(
why?!?! :( :(
PS: this is a version for iOS app... I create app with cordova in terminal and xcode.
I have prepared a .zip file with my app. I deleted all unnecessary files and codes so that only you can view the config.xml and the code that starts the app.
Link: http://tiendamuaythai.es/problem-app.zip
You can see in config.xml the app start with inici.html file.
In this file (to fix the problem, but I still have not fixed) I only put a code for redirect after 1 second to start.html file. I doing it to have the page after splash screen very clean, without codes, for try to fix problem...
In the start.html file you can see all plugins links and the link to JavaScript file startapp.js. This file request by ajax script on my server if the session of user is open.
If is open redirect to index page, if the session are closed it redirect to login page.
Is simple and work good!!! Only I have a problem with the spash screen... 20% of times it crashes, splash remain fixed on screen, and does not load inici.html page... :(
why?!?! :( :(
PS: this is a version for iOS app... I create app with cordova in terminal and xcode.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
PS: this is a version for iOS app... I create app with cordova in terminal and xcode.So, you're not using Phonegap Build? In that case, you are a bit lost here. This is the forum for Phonegap Build, the place for developers who don't install Phonegap, SDK's, plugins, etc.
We just put our assets in a zip file, together with the config, and that's it.
That's why I asked for "your zip file", meaning the input file for Phonegap Build.
For Phonegap Build, your zip would not work.
1. You have no index.html, which is mandatory
2. You don't have config.xml in the root of your zip
More important are some general things that are even wrong when you build locally:
3. You are using all old, deprecated plugins from the pgb repo. You should replace them all by the latest versions of the plugins from npm, instead
4. You have
<feature name="http://api.phonegap.com/1.0/camera"/>
which you should remove
5. Your icons path starts with "icons/", but there is no such directory in your project
6. ...and most importantly: you have no splashscreen plugin. Use cordova-plugin-splashscreen from npm
(also include cordova-plugin-statusbar, which is necessary to make iPad display correctly).
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers
-
PhoneGap Build
- 15111 Conversations
- 275 Followers
-
Plugins
- 1283 Conversations
- 38 Followers

