UIWebView deprecation

Welcome! Forums Unity Plugins In-App Web Browser UIWebView deprecation

This topic contains 7 replies, has 4 voices, and was last updated by  alienheretic 4 days, 18 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1647

    wiksy
    Participant

    iOS App Store is going to stop accepting apps that use UIWebView soon, but I saw this plugin still relies on it.

    ITMS-90809: Deprecated API Usage – Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

    Is there a way to remove this dependency or upgrade to WKWebView?

    #1648
    Piotr
    Piotr
    Keymaster

    Of course, I prepared new version with WKWebView.

    Would you like to test it out and let me know if you see any regression?

    Here are instructions:
    1. Remove plugin files from /Plugins/iOS directory*,
    2. Download http://kokosoft.eu/beta/InAppWebBrowser206.a
    3. Place it into /Plugins/iOS directory
    4. Rebuild iOS project
    5. Test it out and let me know about results 🙂

    * These files:
    InAppBrowserViewController.h
    InAppBrowserViewController.mm
    iOSInAppBrowser.mm
    OrientationNavigationViewController.h
    OrientationNavigationViewController.m

    #1649

    wiksy
    Participant

    Hi,

    I tried this new library. It works, but it seems that somehow all texts are rendered twice with an offset, making them hard to read.

    #1650
    Piotr
    Piotr
    Keymaster

    Thanks for getting back with feedback. Could you post screenshot of this issue?

    #1660

    tpitman
    Participant

    Any word on when this might be fully tested and released?

    #1661

    tpitman
    Participant

    I followed your instructions to download the .a file and remove the other files. It builds fine, but when I run it I get an exception.

    I am using javascript interaction. Do I have to change any of that for it to work?

    #1662

    tpitman
    Participant

    Not sure this will be much help, but here is the top part of the exception stack:

    
    	0   CoreFoundation                      0x000000019c65ead0 <redacted> + 256
    	1   libobjc.A.dylib                     0x000000019b863d00 objc_exception_throw + 60
    	2   CoreFoundation                      0x000000019c57c4d4 <redacted> + 0
    	3   CoreFoundation                      0x000000019c664464 <redacted> + 1412
    	4   CoreFoundation                      0x000000019c666260 _CF_forwarding_prep_0 + 96
    	5   espresso                            0x0000000102d58978 +[InAppBrowserConfig(DisplayOptionsStruct) fromDisplayOptions:] + 356
    	6   espresso                            0x0000000102d54c6c _ShowURLWithDisplayOptions + 120
    	7   espresso                            0x0000000102d54e74 _OpenInAppBrowser + 104
    	8   espresso                            0x0000000102d686b4 iOSInAppBrowser__OpenInAppBrowser_mC93248E1F49443BED3C3D03A7C55783E7EAFE0C4 + 108
    	9   espresso                            0x0000000102d67064 CliveWebBrowserScript_Awake_mC890CB4E232C63AD0AA251991D4ECD40F2EEB86A + 132
    	10  espresso                            0x000000010240ae50
    
    #1663

    alienheretic
    Participant

    I also have this issue and client is pressing me for a fix can you please advise using unity 2019.2.4.f1

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.