ionic-team / ionic-starter-salesforce

A starter project for Ionic and Salesforce
85 stars 33 forks source link

bootstrap error - CDVWebViewDelegate: Navigation started when state = 1 #6

Open tharrington opened 9 years ago

tharrington commented 9 years ago

I am able to get the app running with my connected app in a dev org. However, when running on an iOS device, if I switch views multiple times using the navigation menu, an error is eventually shown: screen shot 2015-03-03 at 11 43 30 am 2

And the debug log shows this error:

2015-03-03 11:42:02.943 Mayors[20552:163340] CDVWebViewDelegate: Navigation started when state=1 2015-03-03 11:42:02:943 Mayors[20552:607] ERROR|SFHybridViewController|Error while attempting to load web page: Error Domain=CDVWebViewDelegate Code=1 "CDVWebViewDelegate: Navigation started when state=1" UserInfo=0x7f9f136bae80 {NSLocalizedDescription=CDVWebViewDelegate: Navigation started when state=1} 2015-03-03 11:42:03.207 Mayors[20552:163340] Failed to load webpage with error: CDVWebViewDelegate: Navigation started when state=1 2015-03-03 11:42:03.216 Mayors[20552:163340] Resetting plugins due to page load. 2015-03-03 11:42:03.224 Mayors[20552:163340] Finished load of: about:blank

Have you found a solution to this issue?

tharrington commented 9 years ago

Also, is there a way to auto-restart force-server on file change? Just like using $ionic serve?

What about using smartstore/smart sync? Can this be done in the browser or would you be better of using HTML5 storage?

jclark-dot-org commented 9 years ago

@tharrington Any luck? Having the same issue. Judging from the debug log, it's a problem in SFHybridViewController - Salesforce code. I'm not using the ionic starter pack, but I am using Ionic in my hybrid Remote app.

tharrington commented 9 years ago

@jclark-dot-org I have not been able to resolve the issue. Let me know if you find anything.

plevie commented 8 years ago

Is there any update on this issue?

skojima123 commented 8 years ago

I encountered the same error msg when I was opening up an external url from an ionic app. Not sure if my case is related to the issue @tharrington raised but I was able to solve my issue by simply installing cordova InAppBrowser plugin.

https://github.com/apache/cordova-plugin-inappbrowser