snipking / cordova-hot-code-push Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nordnet/cordova-hot-code-push
Plugin add hot update ability to cordova app
License: MIT License
This project forked from nordnet/cordova-hot-code-push
Plugin add hot update ability to cordova app
License: MIT License
error code : -18 ;
ASSETS_FOLDER_IS_NOT_YET_INSTALLE
what's mean?
When cordova build is executed - www content is copied to the platform-specific www folder:
For Android: platforms/android/assets/www.
but I didn't get it;
Could you please help me?
Plugin works fine but if i remove the platform (which is fairly often), cordova tries to install the old nordnet/cordova-hot-code-push-plugin instead of your cordova-hot-code-push-plugin-renew
Run cordova info
(or ionic info
) and paste it here, or give us information like:
PS great work, love the updates!
PPS yes, i know i can just add the forked repository, but it does not look as nice in the configs
Hello, I manage to configure my app to do the HCP, I see it happening in the console connecting the DevTools.
Also manually invoking the chcp.fetchUpdate()
and chcp.installUpdate()
commands works all fine.
But then the app does not get updated when I refresh, I tried to close, force close, everything, with no luck.
Any idea/help on how to debug this?
cordova-hot-code-push-plugin-renew\scripts\lib\chcpConfigXmlWriter.js中的pathToAndroidConfigXml方法需要判断cordova是否大于7.0,config.xml路径不同
function pathToAndroidConfigXml() {
// cordova-android >= 7.0.0
return path.join(projectRoot, 'platforms', 'android','app','src','main', 'res', 'xml', 'config.xml');
}
After installing cordova-hot-code-push-local-dev-addon I got this warning: "Conflict found, edit-config changes from config.xml will overwrite plugin.xml changes". Is it critical?
Below is list of all edit-config from my config.xml:
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:largeHeap="true" />
</edit-config>
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" />
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>Need camera access to take pictures</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>Need photo library access to get pictures from there</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryAddUsageDescription">
<string>Need photo library access to save pictures there</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
<string>Need access to location</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSLocationAlwaysUsageDescription">
<string>Need access to location</string>
</edit-config>
The iOS App works on first start. On second and following starts, only a blank white page is displayed.
I already tried debugging but i can't find the cause.
Do you saw this already in one of your projects?
It is really hard to solve the issue if you can't reproduce it. So please, add a step-by-step guide on how to get the same error.
user@macmini Cordova % cordova info
Cordova Packages:
cli: 11.1.0
common: 4.1.0
create: 4.1.0
lib: 11.1.0
common: 4.1.0
fetch: 3.1.0
serve: 4.0.1
Project Installed Platforms:
ios: 6.3.0
Project Installed Plugins:
cordova-hot-code-push-plugin-renew: 1.5.10
cordova-plugin-add-swift-support: 2.0.2
cordova-plugin-android-permissions: 1.1.5
cordova-plugin-camera: 6.0.0
cordova-plugin-compat: 1.2.0
cordova-plugin-device: 2.1.1-dev
cordova-plugin-dgram: 0.1.5
cordova-plugin-file: 4.3.3
cordova-plugin-hidden-statusbar: 1.0.0
cordova-plugin-ios-base64: 1.0.0
cordova-plugin-networkinterface: 2.0.0
cordova-plugin-print-pdf: 4.0.0
cordova-plugin-statusbar: 3.0.0
cordova-plugin-whitelist: 1.3.5
ionic-plugin-keyboard: 2.2.1
phonegap-plugin-barcodescanner: 8.1.0
Environment:
OS: macOS Ventura 13.3.1 (22E261) (darwin 22.4.0) arm64
Node: v16.20.0
npm: 8.19.4
ios Environment:
xcodebuild:
Xcode 14.3
Build version 14E222b
Successfully Install plugin and followed steps given by plugin, Unable to achieve not working hot code push www not updated failed to download
按照wiki中的说明,在win 10 创建cordova项目并添加插件,但在执行命令cordova-hcp server
时出现如下错误信息:
Running server
Could not create tunnel: Error: ngrok is not yet ready to start tunnels
at Request._callback (D:\programs\nvm\v12.0.0\node_modules\cordova-hot-code-push-cli\node_modules\ngrok\index.js:192:30)
at Request.self.callback (D:\programs\nvm\v12.0.0\node_modules\cordova-hot-code-push-cli\node_modules\request\request.js:185:22)
at Request.emit (events.js:196:13)
at Request.<anonymous> (D:\programs\nvm\v12.0.0\node_modules\cordova-hot-code-push-cli\node_modules\request\request.js:1154:10)
at Request.emit (events.js:196:13)
at IncomingMessage.<anonymous> (D:\programs\nvm\v12.0.0\node_modules\cordova-hot-code-push-cli\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:284:20)
at IncomingMessage.emit (events.js:201:15)
at endReadableNT (_stream_readable.js:1130:12)
at processTicksAndRejections (internal/process/task_queues.js:83:17) {
error_code: 104,
status_code: 503,
msg: 'ngrok is not yet ready to start tunnels',
details: {
err: 'a successful ngrok tunnel session has not yet been established'
}
}
cordova info
Cordova Packages:
cli: 11.0.0
common: 4.0.2
create: 4.0.0
lib: 11.0.0
common: 4.0.2
fetch: 3.0.1
serve: 4.0.0
Project Installed Platforms:
Project Installed Plugins:
cordova-hot-code-push-local-dev-addon: 0.4.2
cordova-hot-code-push-plugin: 1.5.3
Environment:
OS: 10.0.19044 (Windows 10.0.19044) x64
Node: v12.0.0
npm: 6.9.0
Project Setting Files:
config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>Sample Apache Cordova App</description>
<author email="[email protected]" href="https://cordova.apache.org">
Apache Cordova Team
</author>
<content src="index.html" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
</widget>
package.json:
--- Start of Cordova JSON Snippet ---
{
"plugins": {
"cordova-hot-code-push-plugin": {},
"cordova-hot-code-push-local-dev-addon": {}
}
}
--- End of Cordova JSON Snippet ---
Run cordova info
(or ionic info
) and paste it here, or give us information like:
http://www.jw-sc.cn/problem.mp4
这是出现问题的使用场景。请您帮忙看一下问题可能出在什么地方,是不是有些地方理解的不对。
windows 11
[email protected] postinstall C:\Users\skenu\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\ngrok
node ./postinstall.js
ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip
ngrok - error downloading binary { Error: certificate has expired
at TLSSocket. (_tls_wrap.js:1103:38)
at emitNone (events.js:106:13)
at TLSSocket.emit (events.js:208:7)
at TLSSocket._finishInit (_tls_wrap.js:637:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38) code: 'CERT_HAS_EXPIRED' }
Plugin doesn't build for android with gradle 7.4
Run cordova build android
error:
* Where:
Script '/path/to/platforms/android/cordova-hot-code-push-plugin-renew/myapp-chcp.gradle' line: 12
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method compile() for arguments [com.fasterxml.jackson.core:jackson-core:2.4.4] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
The compile
directive is deprecated and should be implementation
.
Cordova Packages:
cli: 11.0.0
common: 4.0.2
create: 4.0.0
lib: 11.0.0
common: 4.0.2
fetch: 3.0.1
serve: 4.0.0
Project Installed Platforms:
android: 11.0.0
browser: 6.0.0
ios: 6.2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.