Setting iOS splash image not possible in Sencha Touch + phonegap? - ios

I have looked around on the web for answers but and am unable to find a clear way to set the iOS splash screen from the sencha/phonegap config. I created splash images to both sencha and phonegap resource directories, and added them to sencha's app.json and config.xml as shown below, then ran "sencha app refresh && sencha app build native".
<gap:splashgap:platform="ios"width="320"height="480"src="resources/splash/320x480.png" />
<gap:splashgap:platform="ios"width="640"height="960"src="resources/splash/640x960.png" />
<gap:splashgap:platform="ios"width="640"height="1136"src="resources/splash/640x1136.png" />
<gap:splashgap:platform="ios"width="768"height="1024"src="resources/splash/768x1024.png" />
<gap:splashgap:platform="ios"width="1024"height="768"src="resources/splash/1024x768.png" />
<gap:splashgap:platform="ios"width="1536"height="2048"src="resources/splash/1536x2048.png" />
<gap:splashgap:platform="ios"width="2048"height="1536"src="resources/splash/2048x1536.png" />
This workflow works well to update the app icon files in the Xcode project, but does not update the iOS splash screen.
Is this actually not possible??
Thanks!

Related

allow-navigation isn't taking precedence over allow-intent on iOS

I generated an iOS and Android Pollyfill for my PWA app with PWAbuilder. It is working great on Android, but I'm running into an issue on the iOS one.
I want external links to open in the external browser, so I added this allow-intent:
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
This worked fine, if I click on any external link (not-under-my-domain.com), it opens in the external browser.
For opening my-domain.com within the app, I added
<allow-navigation hap-rule="yes" href="*://my-domain.com/*" />
According to the docs, allow-navigation should take precedence over allow-intent, but it does not seem to be working.
Then if I click on any link within my domain, such as /other-page, it opens in the external browser - which isn't expected, it should open within the app.
I would like to have any link not defined in allow-navigation to open in the external browser, and all others (under my-domain.com) within the app.
Any ideas?
So after all it seems the problem was with my outdated version of cordova. I upgraded the cordova version following #jcesarmobile's suggestion on the comments and it is working now.
npm install cordova -g
cordova plugin save
cordova platform rm ios
cordova platform add ios

iOS cordova app not seeing images saved with cordova.plugin.file after app update

iOS Cordova application does not see locally saved images after app update. Before that everything works fine. How do i set dynamically relative url with cordova.plugin.file?
I used in config.xml:
<preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle,root" />
<preference name="iosPersistentFileLocation" value="Library" />
The cordova.plugin.file saves data to:
cordova.file.dataDirectory;
But after app update they disappear from the folder i see them in in console. I read about ios copying files after update and that i have to set relative path to the images that i save locally from camera. But i do not know how to do it for ios to see the images.
Well, the thing was that I saved them to a temp directory, which is cleared by ios on app update. After I started saving the images to the Documents/ directory, everything started working fine.
See docs here https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/

How to set app icon and splash screen for IOS using visual studio tools for apache cordova?

I am building an Apache Cordova app using Visual Studio 2013 with the tools for Apache Cordova extension.
I cannot change the icon that appears in the Apple Store or in iTunesConnect.
I am able to change the icon for android and google play store however.
I have changed the files in res/screens/ios and res/icons/ios accordingly, but it doesn't seem to be updating when I create a new IPA and upload it.
This is the icon I am getting at the moment and this image does not exist anywhere in my project directory structure.
Please notice that the value of the "src" attribute is relative to the project directory and not to the www directory. You can rename the source image whatever you like. The internal name in the app are determined by Cordova.
<platform name="ios">
<!-- iOS 8.0+ -->
<!-- iPhone 6 Plus -->
<icon src="res/ios/icon-60#3x.png" width="180" height="180" />
<!-- other icons -->
</platform>
Hi you need to set image in below locations. There will be default folder created with default cordova logos and splashscreen.
note icons must match the size (height and width).

Phonegap 3.1 won't load external content, despite it being explicitly set

I realise this is a common problem and has been asked many times, however I do feel that no other answers work in this instance.
I have a basic PhoneGap application that works fine in browser, on the Android simulator, on Android devices in the XCode/iOS simulator. It does not work, however, on iOS devices. When adding external libraries the app essentially hangs. It doesn't crash, but tries to load it forever more, leaving a blank white screen.
I know this is a common problem, fixed by amending the config.xml to whitelist URLs, which I believe I have done, but I still get the same problem.
My config.xml has the following entry:
<access origin="*" subdomains="true" />
I have also tried the following:
<access origin="*" />
<access origin="*" subdomains="true" />
<access origin=".*" />
<access origin=".*" subdomains="true" />
All together and on their own, with no luck. After building to iOS (phonegap local build ios) I have also 'prepared' all of the plugins (cordova prepare).
I have tried several libraries, from various CDNs such as Google CDN and jQuery CDN. I have also tried adding an iframe with the following:
<iframe src="http://google.co.uk" width="250" height="500"></iframe>
Which gives me a blank iframe.
If I look at the build in XCode and look at the generated platform-specific config.xml files I can see the same access XML as expected.
I am using the below versions:
Phonegap 3.1.0-0.15.0
XCode 5.0
OSX 10.8.5
iOS 6.1.3 (iPod Touch)
iOS Simulator for iOS 7
Any help is much appreciated.

Splash spinner not showing in PhoneGap 2.4

For some reason my splash spinner is not working in my PhoneGap 2.4 app for iOS but I have
<preference name="ShowSplashScreenSpinner" value="true" />
Are there any basic troubleshooting tips to try and get this working?
I have the same issue, but in PhoneGap 2.5. I just migrated from 2.4 where the spinner used to show up on both: iPad and simulator.
Do you the correct image specifications for splashs creens? Can you see them in XCode project summary ? Please check this and this .

Resources