I'm trying to develop an app for android and ios with phonegap, so I decided to use splash screen for my app.
I know that cordova has a plugin and we can use this plugin for splash screen, but I have another idea.
For example:
- Using a function that has a timer for 5 seconds to display the splash screen.
- When the timer expired, the splash screen should be removed and show main app. By this way we have an advantage to set splash screen for any device with any width and height without creating any pictures (I mean creating a responsive page)
So my questions is:
- What is disadvantage of this way?
- I just want to use splash screen for beauty is this necessary to use phonegap plugin? And I want to use this timer outside of
devicereadyevent function. - Is this dangerous as the cordova docs said that all of the functions must be in the deviceready event function?
Thanks