来自appDelegate的javascript调用:phonegap iOS
如何在appDelegate.m类中获得phonegap webview实例 我想在通知接收时调用javascript函数(即从appDelegate类)为我解决 只需在来自appDelegate的javascript调用:phonegap iOS,ios,xcode4,cordova,Ios,Xcode4,Cordova,如何在appDelegate.m类中获得phonegap webview实例 我想在通知接收时调用javascript函数(即从appDelegate类)为我解决 只需在didReceiveMemotentification 像 NSString * jsCallBack = [NSString stringWithFormat:@"pushCallBack();"]; [self.webView stringByEvaluatingJavaScriptFromString:jsCallBack
didReceiveMemotentification
像
NSString * jsCallBack = [NSString stringWithFormat:@"pushCallBack();"];
[self.webView stringByEvaluatingJavaScriptFromString:jsCallBack];
在cordova>3.0中,使用:self.viewController.webViewstringByEvaluatingJavaScriptFromString@AmitBattan:当应用程序处于后台状态时点击通知时,回调失败。有什么线索吗?