cordova-simulate | Simulates your Apache Cordova application in the browser | Mobile Application library
kandi X-RAY | cordova-simulate Summary
kandi X-RAY | cordova-simulate Summary
Simulates your Apache Cordova application in the browser.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cordova-simulate
cordova-simulate Key Features
cordova-simulate Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-simulate
QUESTION
I am updating the dojo libraries in a Cordova mobile app. Everything works correctly when running the updated application in the browser (using Cordova-simulate). When running my application in an emulator or on the device, I get an error like:
Unable to open asset URL: file:///android_asset/www/scripts/lib/3.32/dojo/_base/Url.js```
When I examine my .apk file, the error makes sense, because the _base and _firebug folders have not been copied into the apk.
The _base and_firebug folders are properly copied to the platforms folder during the application build process, but are not being included into the final APK. As near as I can tell, the problem is these folder names begin with an underscore character.
I renamed _base and _firebug, to base and firebug. AFter building again, I was able to confirm that they were included in the APK. This seems to confirm that the underscore is what is preventing the directories from being included.
I found this 2014 post dojo/_base/*js missing from worklight apk in wl 6.1 which is the same basic issue. And I tried the suggested fix, but Android rejected my apk at install time with the error below. The post is 6 years old, so obviously something has changed, or I'm doing something completely wrong. Probably both.
adb: failed to install app-debug.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl633061898.tmp/base.apk: META-INF/CERT.SF indicates /data/app/vmdl633061898.tmp/base.apk is signed using APK Signature Scheme v2, but no such signature was found. Signature stripped?]
Ideally, I would like to specify some command line option (or build-extras.gradle option, or whatever) to force the build process to include the _base and _firebug folders.
Alternately, if someone has a link to clear instructions on how to unzip, modify, rezip, sign and align my APK, that would be super helpful also.
Any suggestions will be greatly appreciated.
Thanks in advance.
...ANSWER
Answered 2020-Sep-01 at 14:52This isn't the perfect (easiest) solution I would have liked, but it worked for me. Maybe it will help others who hit this same problem with the dojo/_base library.
TL;DR I added a before_compile hook into the build process that manually copied the _base folder into place.
To accomplish this, I first used npm to install fs-extra into my project.
QUESTION
I'm building a Cordova App from VS2017 with Tools for Apache Cordova, the app is deadly simple, it uses:
- Cordova 6.3.1
- node.js 443
- npm 1.15.0
- cordova-simulate 0.3.13
- cordova-android 5.2.1
- cordova-ios 4.2.0
- cordova-plugin-inappbrowser 3.1.0
- cordova-plugin-whitelist 1.2.2
config.xml content:
...ANSWER
Answered 2019-Sep-02 at 06:54QUESTION
seems like I follow guide after guide and I just don't seem to get the same results, which is quite frustrating...
this is my index.js
...ANSWER
Answered 2019-Mar-17 at 07:32The main issue is that you don't pass a function as click listener:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-simulate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page