最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - PhonegapCordova 3.1 Resetting plugins due to page load - Stack Overflow

programmeradmin3浏览0评论

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.

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.

Share Improve this question asked Oct 29, 2013 at 23:43 bart_88bart_88 4882 gold badges5 silver badges15 bronze badges 3
  • are you using jquery mobile? if so, take a look at this: stackoverflow./questions/15858879/… – royse41 Commented Nov 28, 2013 at 10:28
  • 1 @seanxe no its a fresh build of the hello world application. – bart_88 Commented Nov 29, 2013 at 1:36
  • strange! not really a direct solution, but they've just released v3.2. maybe try upgrading and see if it's a bug that was fixed? cordova.apache/#news – royse41 Commented Nov 29, 2013 at 9:28
Add a ment  | 

1 Answer 1

Reset to default 10

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.");  
 [_mandQueue 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.

发布评论

评论列表(0)

  1. 暂无评论