ludei / webview-plus

Uniform webview on any Android 4.x device.
103 stars 16 forks source link

Undesired prompt on app startup #31

Closed shawninder closed 10 years ago

shawninder commented 10 years ago

I want to start using WebView+ in an existing cordova project.

To try it out, I started testing it on a brand new cordova project. It looks like it's working because when I log navigator.userAgent, I get something different if I include WebView+. However, I get an undesired prompt when the app starts. The prompt has a title ("Prompt"), a default value ("gap_init:2") and two buttons ("OK" and "Cancel"). If I press OK, everything seems to work. If I press Cancel, I just get a black screen.

Why does this prompt appear? How can I get rid of it?

Steps to reproduce:

$ cordova create a x.y.z myTest
$ cd a
$ cordova platform add android
$ cocoonjs plugin add com.ludei.webview.plus
$ cordova run --device android

More info

$ cordova -version
3.6.3-0.2.13
shebkhan commented 10 years ago

Hi.

This is happening because you created the project with cordova based cli commands not cocoonjs based.

try creating project with cocoonjs create and cocoon platform add that will solve your issue

cureorcurse commented 10 years ago

Hi,

I got the same issue, Im using total cocoonjs CLI. the gap_init:2 prompt still appear.

karliky commented 10 years ago

HI all

this problem has been solved with the latest release, please install it using:

$ cocoonjs plugin add com.ludei.webview.plus