CDVWebViewDelegate: Navigation started when state=1

CDVWebViewDelegate: Navigation started when state=1

by Claudio ancooor -
Number of replies: 7

Hi Guys,

I'm trying to build the app for iOS.

I'm getting this error once click on a  resource (PDF, doc, etc) (into the iOS emulator):
Failed to load webpage with error: CDVWebViewDelegate: Navigation started when state=1

 

Could you help me please?

Thanks a lot

Average of ratings: -
In reply to Claudio ancooor

Re: CDVWebViewDelegate: Navigation started when state=1

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Claudio,

why don't you use Phonegap Build for building? It will make your live easier.

We use Phonegap Build for avoid this type of problems

Cheers, Juan

Average of ratings: Useful (1)
In reply to Juan Leyva

Re: CDVWebViewDelegate: Navigation started when state=1

by Claudio ancooor -

Hi Juan,

thank you very much.  It works.

Now others problems are also fixed.


Do you thing that could be possible to implement a plugin that enable the function "Open With" in iOS?

I need that the PDF resources will be launched from Adobe Reader (or others PDF reader). This already works on Android.


Thanks again,

Claudio


In reply to Claudio ancooor

Re: CDVWebViewDelegate: Navigation started when state=1

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Yes, it would be possible, is in the roadmap see:

https://tracker.moodle.org/browse/MOBILE-526

Ah, I see you already commented there

In reply to Juan Leyva

Re: CDVWebViewDelegate: Navigation started when state=1

by Claudio ancooor -

Hi Juan,


yes, I already commented there because i found the forum 3 days ago. Sorry!!


I tried to implement this functionality ("Open With") and it seems to works properly.

I'll test it hardly during the weekend and I will share it with you (if needed).


Claudio

In reply to Claudio ancooor

Re: CDVWebViewDelegate: Navigation started when state=1

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Thanks Claudio,

the main problem of using Phonegap plugins is that someones are not maintained, this is the reason we didn't use the Open with one.

We try to use only plugins listed here:

plugins.telerik.com

Cheers, Juan

In reply to Juan Leyva

Re: CDVWebViewDelegate: Navigation started when state=1

by Claudio ancooor -


Hi Juan,

ok, I understand. The problem is that I'm not using a telerik plugin but one listed into phonegap (FileOpener2).

It seems to works fine but, as you told, we are not sure that it will be updated/maintained.

The portion of code added is pretty simple, if you want I can share it with you.

Cheers, Claudio

 

In reply to Claudio ancooor

Re: CDVWebViewDelegate: Navigation started when state=1

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

we'll try to fix this for the next release, I've found another plugin maintained by Telerik (the socialshare one) that may works for iOs

Cheers, Juan