Phonegap 3.3-3.4 How to add icon for IOS - ios

I am building IOS on cloud. My local phonegap project only runs on android sdk, no ios sdk. Hence, I do not have the folder structure for ios.
Where should i place the app icon for ios ? I believe the default \www\res\icon path is not working. I have to manually place my android icon in \platforms\android\res\drawable for my android icon to work.

i am using a hook for copying these files, because it seems that cordova is not able to do it.
http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/

Related

How to upload Old Cordova iOS App to the App Store with WKWebView

Cordova iOS is giving me a very hard time. I have a Cordova iOS app written in 2016 and I am handling it now.
I believe you are familiar with the following app store issues regarding UIWebView:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted.
Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Now my application is quite huge; it has Apple Pay feature, biometrics, lots of bridge calls between website and iOS app.
I tried to update Cordova in my app and then uploaded it, but it never worked. So I find out that first the physical structure of my app was wrong, all I had in my source tree is 'src' folder which had everything. So I created "hello world" Cordova iOS project from terminal (command line) and then noticed the difference of folders and files like config.xml hooks, nodeModules etc ..
Now my solution was to create a sample helloworld app and then copy my code into ios folder (platform->iOS-> My 100 files). But it did work. I followed this link: https://github.com/apache/cordova-plugin-wkwebview-engine
And i thought if i follow following lines of code in terminal :
cordova create wkwvtest my.project.id wkwvtest
cd wkwvtest
cordova platform add ios#4
cordova plugin add cordova-plugin-wkwebview-engine
I will create a Cordova app which will have ios 4 version of Cordova and then WKWebView will be integrated in my app and then i will be able to upload this app on app store.
But even this sample application gives me app store error of deprecated UIWebView. Has anyone found the clear cut solution to this problem?
Q1: Have you ever uploaded a sample test app like hello world to the TestFlight which has Cordova ios 4.1+ or even cordova ios 5.1+ version. Because I am assuming in Cordova wkwebview plugin all things related to uiwebview has already been handled or atleast in the latest version it has been handled and we don't need to do anything else apart from installing latest Cordova ios version.
Question 2: What should I do to upload my app on app store it has cordova-ios 4.1.1 right now. I tried many possible ways. Like for eg a) created a sample cordova-ios app with latest Cordova ios 5.1.1 and copied all my source files (almost 100-500) into ios folder, removed all uiwebview instance in my code (almost 50 places), but when I search for 'uiwebview' cordova library still has almost 120 search results.

Cordova Build on Android Not Using Code from WWW Folder

I'm using cordova to package up a pre written angular js application by placing the contents of the app into the www folder inside the cordova sturcture and running the following commands:
cordova platform add ios
cordova build ios
cordova emulate ios
The app then loads on the ios emulator, but instead of the app content as I would expect to see, it shows the hello cordova index file. I have done the exact same thing for android and it works perfectly on that and shows the app correctly. Any help with finding out why the default cordova index page is still shown would be great thanks.
Managed to get it working. When I built the code using cordova, I then opened the xcode.proj file in xcode, and that has done something to some of the files, and it was causing the app to crash at the splash screen. This is why I thought it was not using the www/ code as the splash screen is almost identical to the hello cordova default index file.
Using the cordova emulate command line option to run the app without touching xcode allows the app to run correctly.

Drupalgap developed IOS app not working after renaming from ExampleApp to a custom name

A hybrid app was developed using Drupalgap cordova for iOS. The project is named ExampleApp, as followed by a tutorial, and once started in Xcode (5 and 6) the app works well in iOS simulator. Now I need to rename the app to a custom name to put it for submission in the App Store, but once I do that in Xcode, the app breaks. I followed the official Apple Support page to do that and the one here on stackoverflow with no luck. The app is present on iOS iPhone simulator dashboard with the icon and a new name, but once it starts loading the splash screen, it breaks as soon as it loads it. What is the best way to resolve this problem?
Here's what I would do:
use the PhoneGap Command Line Interface to create a new "official" project: cordova create OfficialApp com.official "OfficialApp"
add the iOS xCode project files: cordova platform add ios
install the DrupalGap SDK on top of the empty project
copy the www/app folder from ExampleApp into your new empty project's www/app folder
prepare/build the app from the terminal
test in xCode simulator
Be sure to replace any custom modifications you had to the index.html file of your new Project. More info: http://drupalgap.org/node/193
Each step of the way, I'd recommend doing a prepare/build via the terminal and then launch the app via xCode to verify PhoneGap works out of the box, then DrupalGap works out of the box, then drop your app on top and run it.
If these steps don't work, I'd recommend opening up an issue in one of the queues:
http://www.drupalgap.org/support

Create .xcappdata from ios simulator

I know how to download files *.xcappdata from iOS device and use it during test and running simulation.
There is a similar feature for downloading data from iOS simulator?
Now I manually copy/restore application folder inside the simulator but using the xCode functionality can be very handy.
thanks.

iOS PhoneGap 2.3 Config.xml Confusion

Okay so I am trying to port my Android app that is currently using PhoneGap over to iOS. In the Android world I used the config.xml file to store settings such as splash screen and screen timeout along with icon urls. The issue I am having is how do I get this to work on iOS in xcode? In the sample PhoneGap project from Adobe they state that the cordova.plist file is gone in 2.3 and is replaced by config.xml, but then adobe goes and states that the config.xml file is used for the Adobe PhoneGap App Builder. Where do I store my settings if I dont want to use the App Builder? I have the packages installed correctly, because my app loads fine, but I cannot seem to change any of the splash screen or timeout settings. Any help would be appreciated!
If I understand you correctly, you want to update your splashscreen.
You should replace the defaults png files via xCode finder in the left side of the workspace.
Then, just clean and rebuild.

Resources