Override Phonegap default splash screen using jquery mobile - jquery-mobile

I use jQuery Mobile with HTML5 and CSS3.
When I upload my code to PhoneGap cloud build servers and place the app on my iPhone and start the app, I see the following splashscreen:
The question now is: how can I override this image?
Do note: I'm not using a regular phonegap project (e.g. in Visual Studio), but just an index.html file with js and css files.
Thanks!

You can get some valuable information from here. This is from official Phonegap team. Also you can look into this too.
Hope it helped you.

Apple now requires a splash image. So if you don't include one in your config file on Phonegap Build, then the compiler inserts that ugly default version for you. So the solution is to make sure that you use your own custom splash image and specify that custom image with appropriate settings in the config file. You should be fine after that.
https://build.phonegap.com/blog/new-apple-app-store-submittal-rules
If a splash screen is not found in your package the PhoneGap default
image will be used, so be sure to include your splash screen in all
the required dimensions for your device. Apple has a handy guide to
these dimensions here.

Related

How can all the icon images for Corona SDK apps be generated from a single image file?

To properly customize the app icons for various platforms when using the Corona SDK game engine, a fairly large set of image files of specific sizes needs to be included in the project's root directory and specified in the build.settings file (detailed requirements are found in the Building/Distribution Dev Guide.
Is there any way to easily generate all the required image files for iOS and Android builds starting with a single, hi-res image file?
I use generator Icon Generator for Corona SDK with my previous game.
Solutions using various image processing apps can be found on the Corona Community Forum. My own solution was to write a Script-Fu script in Scheme for GIMP.
For those who are interested, the script (make-corona-icons.scm) and its README (with bare bones installation instructions) can be found in this public GitHub repository. GIMP, the open-source cross-platform "GNU Image Manipulation Program", is free and excellent and can be downloaded here.
I use makeappicon.com. It has treated me well for many years.

How can I override Cordova's audioCapture interface in iOS?

I'm developing a PhoneGap/Cordova project that utilizes the org.apache.cordova.media-capture plugin to capture audio (capture.captureAudio).
iOS has a listed "quirk" that it doesn't have a native audio capturing graphical interface. PhoneGap/Cordova automatically provides the following GUI:
Can this be overridden/edited somehow? I'm talking more about theming (changing the background/image, button styles etc) the interface than re-coding whole screen. I don't need more functionalities to be added on the view.
You have the images available on the bundle
https://github.com/apache/cordova-plugin-media-capture/tree/master/src/ios/CDVCapture.bundle
You can try to download the plugin, replace the images with others of your own and add the plugin locally.
Another option might be to create your own plugin using the same code but creating your own bundle for images (changing the code where necessary)

IOS Phonegap 3.X: Lock page orientation during runtime

I am developing a webapp using phonegap + sencha touch, and I want to lock orientation on certain pages during runtime. I found this phonegap plugin , but it's not working for phonegap 3.X.
I also found something about a js function which named 'shouldRotateToOrientation', is it provided by phonegap? And it seems just works in multi-page(html files) app, my sencha touch app only have one html file.
So, how can I do that? Any help from you will be greatly appreciated.
i know this is not really a valid "answer" but SO doesn't let me comment with <50 rep. anyway, i noticed it's not that difficult to set up an old plugin to be used with cordova 3+. adhere to the folder structure (which you can see in existing cordova plugins like "device"), create a plugin.xml and install the plugin with plugman. read the documentation about plugin development and you should be good.
you will especially have to replace the function header in the ios files. replace
-(void)setAllowed:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
with
- (void)setAllowed:(CDVInvokedUrlCommand*)command
This is a phonegap plugin for android/ios.
https://github.com/yoik/cordova-yoik-screenorientation

Disable orientation change for only specific page

I am developing an application with jquerymobile. I want to disable my landscape orientation for only main page not for others. Are there any commands to do this for pages separately instead of manifest file?
For Android, you can use this screen orientation Phonegap plugin in your main page. I've updated the code to be compatible with Phonegap 2.8.0 - you can find the source code in my answer to this question as well my Eclipse project and resulting APK.
There's an equivalent iOS plugin here but I haven't used it and it may need updating for use with the most recent versions of Phonegap.

Can PhoneGap be used in apps built with theos?

I want to use PhoneGap to make a Cydia app, however the iOS instructions on their website only show how to use it with Xcode.
I don't have a Mac, but I'd like to be able to make my app for Cydia, with theos. Is this possible with PhoneGap, or is it only usable with Xcode?
I've never done this, but YES it should be entirely possible. The Xcode instructions set it up for you to have a specific template with all of the phonegap files already in the proper locations. So it's easy to get going. But it doesn't do anything else that is particularly special. Theoretically you could simply setup all of the files in a theos project.
To do this you will need to 'reconstruct' exactly what goes into a phonegap template. I have no experience with theos, but a rough idea of what you will need to be able to do includes the following:
Import PhoneGap.framework
Reconstruct AppDelegate code
Import Supporting Files (PhoneGap.plist)
Additionally you will need to configure the folder structure with the www folder (that the webview loads from) including the index.html file and the phonegap-1.0.0.js file.
So yes, it should be possible. Let me know if you are successful. Good luck!

Resources