cordova/phonegap 2.0 iOS
-
22-06-2021 - |
سؤال
I get deprecation warnings for invokeString in Main and App .m files. I haven't seen any posts on how to fix this. So far it's working ok, just curious.
self.viewController.invokeString = invokeString; <-'invokeString' is depcrecated
المحلول
[CB-853] Deprecate window.invokeString - use window.handleOpenURL(url) instead
نصائح أخرى
This really helped cause I couldn't figure out how much to comment out... drove me crazy.
In MainViewController.m
comment out:
/* #pragma UIWebDelegate implementation
- (void) webViewDidFinishLoad:(UIWebView*) theWebView
{
... all ...
} */
and in AppDelegate.m
comment out:
// self.viewController.invokeString = invokeString;
لا تنتمي إلى StackOverflow