Weinre debugging tool does not work in chrome cordova (cca) Android app

I am trying to make an android app from a chrome packaged app using cordova chrome (cca) app . The problem is that the weinre client does not see my application that runs on the Android tab.

The same Chrome app works well with weinre on the desktop.

As an insert in html, I use:
 <script src="http://debug.edgeinspect.adobe.com/target/target-script-min.js#anatomy"></script>

I have <uses-permission android:name="android.permission.INTERNET" />in AndroidManifest.xml and <access origin="*" />in config.xml

The same application, created using vanilla cordova, works well with weinre.

How to do work with cca?

+4
source share
1

Weinre , . , , CCA. CCA, .

-, : <script>? , , CCA:

  • --link-to CCA, Chrome, .
  • --copy-from , www/my_main_page.html CCA, Chrome.

cca prepare . , , , platforms/android/assets/www/my_main_page.html platforms/ios/www/my_main_page.html, , <script> . <script> , - , , .

+3

Source: https://habr.com/ru/post/1526975/


All Articles