Phonegap / Cordova 3.1由于页面加载而重置插件 [英] Phonegap/Cordova 3.1 Resetting plugins due to page load

查看:797
本文介绍了Phonegap / Cordova 3.1由于页面加载而重置插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的iOS Phonegap / Cordova 3.1的hello世界应用程序,我得到以下消息在xcode输出:

  2013-10-30 08:20:17.768 HelloWorld [51492:c07]多任务 - >设备:是,应用:YES 

** 2013-10-30 08:20:17.914 HelloWorld [51492:c07]由于页面加载而重置插件**

2013-10-30 08:20:18.394 HelloWorld [51492:c07]已完成的载入:

是否会导致由于网页载入而重置插件消息?该应用程序看起来运行良好,当我构建它。

解决方案

这是由于网页加载而重置插件 - 问题



这是一个已知的与jQuery Mobile和类似库冲突。



>感谢,我立即纠正,@ bart_88。我在Cordova项目代码中查看了以下内容:

   - (void)webViewDidStartLoad:(UIWebView *)theWebView {
NSLog(@由于页面加载而重置插件。
[_commandQueue resetRequestId];
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginResetNotification object:self.webView]];
}

看起来这个代码会被命中(CDVViewController)您看到的消息只是一个可以忽略的新NSLog条目。


I have a fresh build of a iOS Phonegap/Cordova 3.1 hello world application and I am getting the following message in the xcode output :

2013-10-30 08:20:17.768 HelloWorld[51492:c07] Multi-tasking -> Device: YES, App: YES

**2013-10-30 08:20:17.914 HelloWorld[51492:c07] Resetting plugins due to page load.**

2013-10-30 08:20:18.394 HelloWorld[51492:c07] Finished load of: 

What is causing the Resetting plugins due to page load message? The application appears to run fine when I build it.

解决方案

This is a duplicate of Resetting plugins due to page load - Issue on this very site.

It appears to be a known conflict with jQuery Mobile and similar libraries. Check the other post for a very simple remedy to this.

EDIT:

Thanks and I stand corrected, @bart_88. I looked in the Cordova project code and see the following:

- (void)webViewDidStartLoad:(UIWebView*)theWebView {  
 NSLog(@"Resetting plugins due to page load.");  
 [_commandQueue resetRequestId];  
 [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginResetNotification object:self.webView]];  
}

It appears that this code will be hit (CDVViewController) no matter what, so the message you are seeing is just a new NSLog entry that can be ignored.

这篇关于Phonegap / Cordova 3.1由于页面加载而重置插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆