Hi guys,
Since last month apple denies all the apps/games using UIWebView. Now they demand the use of WKWebView, so no more Cordova deploy/publish.
I already tried to create blank swift project on Xcode, importing the RPGMV "www" folder to the Xcode project folder, adding a web view to the main.storyboard, and linking it with the following code in ViewController.swift with nonsuccess. The game loads, but gives an error.
Is there any other solution/workaround for this?
Thanks in advance
Since last month apple denies all the apps/games using UIWebView. Now they demand the use of WKWebView, so no more Cordova deploy/publish.
I already tried to create blank swift project on Xcode, importing the RPGMV "www" folder to the Xcode project folder, adding a web view to the main.storyboard, and linking it with the following code in ViewController.swift with nonsuccess. The game loads, but gives an error.
Swift:
import UIKit
import WebKit
class ViewController: UIViewController {
@IBOutlet var webview: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url = Bundle.main.url(forResource: "index", withExtension: "html", subdirectory: "www")!
let request = URLRequest(url: url)
webview.scrollView.isScrollEnabled = false
webview.loadFileURL(url, allowingReadAccessTo: url)
webview.load(request)
}
}
Is there any other solution/workaround for this?
Thanks in advance