【问题标题】:Phonegap/Cordova 3.1 Resetting plugins due to page loadPhonegap/Cordova 3.1 由于页面加载而重置插件
【发布时间】:2013-11-09 09:02:58
【问题描述】:

我有一个全新的 iOS Phonegap/Cordova 3.1 hello world 应用程序,我在 xcode 输出中收到以下消息:

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: 

是什么导致了Resetting plugins due to page load 消息?当我构建它时,该应用程序似乎运行良好。

【问题讨论】:

  • 你在用jquery mobile吗?如果是这样,看看这个:stackoverflow.com/questions/15858879/…
  • @seanxe 不,它是全新构建的 hello world 应用程序。
  • 奇怪!不是真正的直接解决方案,但他们刚刚发布了 v3.2。也许尝试升级,看看它是否是修复的错误? cordova.apache.org/#news

标签: javascript ios cordova


【解决方案1】:

这是此站点上Resetting plugins due to page load - Issue 的副本。

这似乎是与 jQuery Mobile 和类似库的已知冲突。查看其他帖子以了解对此的非常简单的补救措施。

编辑:

谢谢,我的立场是正确的,@bart_88。我查看了 Cordova 项目代码,看到以下内容:

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

看来这段代码无论如何都会被命中(CDVViewController),所以你看到的消息只是一个可以忽略的新NSLog条目。

【讨论】:

  • 不使用 jQuery 或 jQuery Mobile
猜你喜欢
  • 1970-01-01
  • 2015-01-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多