cordova/phonegap 2.0 iOS
Asked Answered
W

2

8

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
Wixted answered 23/7, 2012 at 16:29 Comment(0)
A
0

[CB-853] Deprecate window.invokeString - use window.handleOpenURL(url) instead

http://mail-archives.apache.org/mod_mbox/incubator-callback-commits/201207.mbox/%[email protected]%3E

Addis answered 23/7, 2012 at 16:53 Comment(4)
I found that but what do I replace that line with? Or do I just remove all references to invokeString.Wixted
I just commented that line, seems fine.Wixted
Same here, I commented invokeString related stuff and it seems to work. But still not sure if it's the correct thing to do...Fasciation
You are safe. Look inside MainViewController.m line 111Neanderthal
D
8

This really helped cause I couldn't figure out how much to comment out... drove me crazy.

http://iphonedevlog.wordpress.com/2012/09/24/phonegap-2-1-0-in-mac-os-x-mountain-lion-10-8-from-download-to-ios-app-store/

In MainViewController.m comment out:

/* #pragma UIWebDelegate implementation
- (void) webViewDidFinishLoad:(UIWebView*) theWebView
{
    ... all ...
} */

and in AppDelegate.m comment out:

// self.viewController.invokeString = invokeString;
Deniable answered 18/10, 2012 at 15:57 Comment(0)
A
0

[CB-853] Deprecate window.invokeString - use window.handleOpenURL(url) instead

http://mail-archives.apache.org/mod_mbox/incubator-callback-commits/201207.mbox/%[email protected]%3E

Addis answered 23/7, 2012 at 16:53 Comment(4)
I found that but what do I replace that line with? Or do I just remove all references to invokeString.Wixted
I just commented that line, seems fine.Wixted
Same here, I commented invokeString related stuff and it seems to work. But still not sure if it's the correct thing to do...Fasciation
You are safe. Look inside MainViewController.m line 111Neanderthal

© 2022 - 2024 — McMap. All rights reserved.