Hi Dave,

Thanks for the reporting! So this issue doesn't occur on pure Crosswalk based 
Cordova build steps but migrate Cordova application using command line tools.

A bug has been created in https://crosswalk-project.org/jira/browse/XWALK-2634 
"Javascript Prompt error when migrate Cordova project using command line tools"

Please keep tracking the status in JIRA XWALK-2634 directly.

BR
Belem

-----Original Message-----
From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Dave 
Richardson
Sent: Tuesday, September 23, 2014 3:39 PM
To: [email protected]
Subject: Re: [Crosswalk-help] Crosswalk Cordova 10 issue

Hello,

Alright, I've done everything again to make sure there is an error, and I still 
see the same.
I'm using Fedora Linux to compile the .apk. Here are my steps:

-- START --

- cordova create sample com.app.sample sample-app
- cd sample && cordova platform add android
- cordova plugin add org.apache.cordova.media
- rm -rf platforms/android/CordovaLib/*
- cp -a ~/Android/crosswalk-cordova-10/framework/*
platforms/android/CordovaLib/
- cp -a ~/Android/crosswalk-cordova-10/VERSION platforms/android/
- nano platforms/android/AndroidManifest.xml - to add:

   <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
   <uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />

- cd platforms/android/CordovaLib/
- android update project --subprojects --path . --target "android-19"
- ant debug
- cd ../../../
- cordova build android

-- END --

I then run the .apk on a mobile phone. Attached to this email a screenshot of 
the error.
So you see I get this error with a minimal plugin installed.
I've been using Crosswalk since version 5, and I love it!, haven't seen this 
error before.

Using:
Cordova: 3.5.0-0.2.7
Crosswalk: 10.38.210.0

Greetings

On 23-9-2014 7:30, Zhang, Belem wrote:
> Hi Dave,
>
> Crosswalk QA tried the Crosswalk based Cordova build Canary 
> 9.38.199.0/10.38.209.0, and Beta 8.37.189.6 with Cordova Mobile Spec tests 
> (https://github.com/apache/cordova-mobile-spec/tree/3.5.x ) which including 
> 17 plugins, the third party DOMLauncher 
> (https://github.com/AricwithanA/DOMLauncher2 ) is tested weekly as well, 
> didn't see the "cordova fails to load the plugins" issue.
>
> Could you please let us know your detailed steps? Please check the test steps 
> we did:
>
>       Download Crosswalk base Cordova binary from 
> https://download.01.org/crosswalk/releases/crosswalk/android/canary/10.38.210.0/arm/crosswalk-cordova-10.38.210.0-arm.zip
>  or 
> https://download.01.org/crosswalk/releases/crosswalk/android/canary/10.38.210.0/x86/crosswalk-cordova-10.38.210.0-x86.zip
>       $ unzip crosswalk-cordova-10.38.210.0-arm.zip
>       $ cd crosswalk-cordova-10.38.210.0-arm/
>       $ ./bin/create hello com.test.hello hellotest
>       $ cd hello/
>       $ plugman install --platform android --project ./ --plugin 
> https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git#r0.2
> .9
>       
>       Update index.html under hello/assets/www/ with following code snippets:
>
>          <div id='platform'>platform</div>
>          <div id='version'>version</div>
>          <div id='cordova'>cordova version</div>
>   
>          <script type="text/javascript" src="cordova.js"></script>
>          <script type="text/javascript">
>              function onDeviceReady() {
>                  document.getElementById("cordova").innerHTML = 
> cordova.version;
>                  document.getElementById("platform").innerHTML = 
> device.platform;
>                  document.getElementById("version").innerHTML = 
> device.version;
>              }
>              document.addEventListener("deviceready", onDeviceReady, false);
>          </script>
>
>       $ ./cordova/build
>       $ ./cordova/run
>
>       Run the app on device, the APIs provided by plugin-device works as 
> attached.
>
> 1. Please use the cordova.js by "./bin/create", currently the version of 
> supported Cordova plugins is 3.5.0.
> https://crosswalk-project.org/#wiki/[email protected]
> crosswalk-cordova-android 2. The CORDOVA_JS_BUILD_LABEL in cordova.js 
> is 3.5.0 3. You can comment out this line on cordova.js if it pops up 
> dialogs in Browser (in line 352), it's better to check the results on device 
> (are you using Apache Ripple?):
>       return prompt(argsJson, 'gap:'+JSON.stringify([service, action, 
> callbackId]));
>
> BR
> Belem
>
>
> -----Original Message-----
> From: Crosswalk-help 
> [mailto:[email protected]] On Behalf 
> Of Dave Richardson
> Sent: Monday, September 22, 2014 5:24 PM
> To: [email protected]
> Subject: Re: [Crosswalk-help] Crosswalk Cordova 10 issue
>
> Hello,
>
> I just tried 9.38.208.1, seems like the error was already there.
>
> Greetings
>
> On 22-9-2014 11:10, Balestrieri, Francesco wrote:
>> Hi Dave,
>>
>> Thanks for reporting this. Have you had the chance to try Crosswalk 9 
>> and if so, does the same issue occur with that version?
>>
>> Francesco
>>
>> On 22/09/14 11:51, "Dave Richardson" <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> Just wanted to report an issue i'm having with Crosswalk Cordova 10, 
>>> which I tried today.
>>> When I launch the app cordova fails to load the plugins.
>>>
>>> This is what happens:
>>> http://stackoverflow.com/questions/16920596/phonegap-html-app-and-va
>>> r
>>> ious-
>>> alerts-hang-browser
>>>
>>> And one of the answers is that the wrong cordova.js file is 
>>> included, and that might be right.
>>>
>>> P.S. If i replace the Cordovalib contents with Crosswalk Cordova 8 
>>> it all works.
>>> An example app with some plugins installed is enough to replicate 
>>> this issue (the source of the index.html doesn't matter).
>>>
>>> Greetings
>>> Dave
>>> _______________________________________________
>>> Crosswalk-help mailing list
>>> [email protected]
>>> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>> ---------------------------------------------------------------------
>> Intel Finland Oy
>> Registered Address: PL 281, 00181 Helsinki Business Identity Code:
>> 0357606 - 4 Domiciled in Helsinki
>>
>> This e-mail and any attachments may contain confidential material for 
>> the sole use of the intended recipient(s). Any review or distribution 
>> by others is strictly prohibited. If you are not the intended 
>> recipient, please contact the sender and delete all copies.
>>
>>
>>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to