Page 2 of 7

Apple UIWebView API's deprecated.

Posted: Mon Mar 23, 2020 3:32 pm
by Evgene Karachevtsev

Hello,

We have updated our platform.
Please try the following: delete edited files on the Source tab and make Undo all source changes for the parent folder (if you have edited files). Select Cordova-ios version in the App Settings:
Image


Apple UIWebView API's deprecated.

Posted: Tue Mar 24, 2020 11:33 am
by Serhii Kulibaba

Hello Paul,

Please add the following line to the config.xml file of the project:pre<preference name="WKWebViewOnly" value="true" />/pre
Image

And select Cordova-ios version in the App Settings-iOS binary tab: Image


Apple UIWebView API's deprecated.

Posted: Wed Mar 25, 2020 2:50 pm
by John Prefer

Hi Serhii,
I followed your instructions for adding the following line in the config.xml file: preference name="WKWebViewOnly" value="true"
When I submit the app to the App Store the error goes away. However, when running it on the phone from the App Store I just get a white screen. Since I am directly using the IPA I can not debug this in Xcode.
When I remove the line of code and resubmit the the App Store the app works as normal. (this was all done using TestFlight by the way).
Please advise; thank you


Apple UIWebView API's deprecated.

Posted: Wed Mar 25, 2020 3:35 pm
by Evgene Karachevtsev

Hello John,

Could you please specify what kind of framework you are using for your app and do you have edited files on the Source tab (except config.xml)?


Apple UIWebView API's deprecated.

Posted: Wed Mar 25, 2020 3:53 pm
by John Prefer

Hi Evgene,
The only file I have edited on the source tab was the config.xml.
Once to put the line of code as told by Serhii and I also changed this line as per the version bug:
ios-CFBundleIdentifier="io.appery.app.phoneApp" ios-CFBundleVersion="1.3"
Nothing else was touched.
I have no custom plugins etc
As the the frameworks see the pictures below:

Image Image Image


Apple UIWebView API's deprecated.

Posted: Wed Mar 25, 2020 5:47 pm
by Evgene Karachevtsev

Dear John,

We passed your issue back to our developers for additional investigations and we will get back with the update soon.


Apple UIWebView API's deprecated.

Posted: Fri Mar 27, 2020 3:13 pm
by Serhii Kulibaba

Hello,

Here is the update about the issue:

For JQM project we still see the issue, working on its fix. As a workaround please use the following instruction:

  1. Select the latest InAppBrowser plugin (3.2.0)

  2. Select a Cordova plugin "Cordova WKWebView Engine"

  3. Add one more Cordova plugin: wkwebview-engine-localhost
    see the example here: https://stackoverflow.com/questions/3...
    pre<access origin="*" />
    <feature name="CDVWKWebViewEngine">
    <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>

    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" /> /pre

    For Ionic 1 we have a solution:

  4. Select the latest InAppBrowser plugin (3.2.0)

  5. Add the following settings to the config.xml, according to
    https://cordova.apache.org/howto/2020...
    pre <preference name="WKWebViewOnly" value="true" />

    <feature name="CDVWKWebViewEngine">
    <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>

    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />/pre

  6. Build a new version of the app and upload it to the App Store

    Ionic 4 applications should work without any extra changes


Apple UIWebView API's deprecated.

Posted: Fri Mar 27, 2020 5:33 pm
by John Prefer

Hi,
I tried the above steps.
1) Select the latest InAppBrowser plugin (3.2.0) (see screenshot below)
2)Add the following settings to the config.xml (in the iOS platform section0 (see screen shot below)
3) Uploaded it to the App Store

When loading the app, first the screen shows the appery.io splash screen then the screen goes white as it did the first time I tried it with the previous instructions. (see screen shot below).

Subsequently, I removed the lines of code from the config.xml and kept the InAppBrowswer (3.2.0) checked, pushed it tho the App Store and now everything works.
But, of course, I still have the error from Apple about the Deprecated API Usage.
Any help would be appreciated
Thank you Image Image Image


Apple UIWebView API's deprecated.

Posted: Sun Mar 29, 2020 11:57 am
by Chris6743166

Hi Serhii,

I've been trying to implement your suggestions with no success. If I implement the "Cordova WKWebView Engine" plugin, the apps navigation buttons and registering for push stops working. If I add the wkwebview-engine-localhost plugin, the app fails to build.

I have tried the changes to config.xml suggested by Appery and outlined here:
https://github.com/apache/cordova-ios/issues/661#issuecomment-599500855

I've been unable to implement any variation of the suggested fixes which works.

Thankfully, Apple has pushed back the deadline from 1st April until 30th June because of the pandemic , however, it appears that Cordova apps will not be accepted after that date unless this issue is fully resolved by then.

I would appreciate an update on whether a fix is in the pipeline.

I have shared the app with support. It's called Plas Coch (f5113da5-003d-4c16-8718-f3db6014775c).

Many thanks!

Chris


Apple UIWebView API's deprecated.

Posted: Wed Apr 01, 2020 8:14 pm
by Serhii Kulibaba

Hello,

We have checked it one more time. Here is the last update on how to make it work in JQM apps:

  • Select the latest libraries version;
  • Select the latest InAppBrowser plugin (3.2.0+);
  • Add the custom Cordova plugin: "cordova-plugin-ionic-webview"