Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
659 views
in Technique[技术] by (71.8m points)

javascript - Phonegap/Cordova 3.1 Resetting plugins due to page load

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...