簡體   English   中英

Phonegap / Cordova 3.1由於頁面加載而重置插件

[英]Phonegap/Cordova 3.1 Resetting plugins due to page load

我有一個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消息導致Resetting plugins due to page load什么? 我構建它時應用程序似乎運行正常。

由於頁面加載 ,這是重置插件的副本-在這個站點上發布。

它似乎是與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條目。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM