Phonegap/Cordova 3.1 Resetting plugins due to page load

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

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.

回答1:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!