Giter Club home page Giter Club logo

cordova-hot-code-push's People

Contributors

alexbuijs avatar andreialecu avatar bbreijer avatar cadesalaberry avatar davidovich avatar guorenjie avatar hassellof avatar ken-gladeye avatar legege avatar manduro avatar nikdemyankov avatar nordnet-deprecation-bot avatar pablomaurer avatar ptarjan avatar snipking avatar toostn avatar zwwhappy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cordova-hot-code-push's Issues

[IOS platform] When install new version of the app, got an error with code -9

Problem

image

Steps to reproduce
  1. publish a version A to store
  2. download and install A
  3. publish a new version B to store
  4. download and install B
  5. open B,then it happens
System info

Run cordova info (or ionic info) and paste it here, or give us information like:

  • Platform: iOS
  • Platform version:6.2.0
  • Cordova version: 10.0.0
  • Node version:v14.16.0

Old [deprecated] version tries to install when re-adding platform

Problem

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

Steps to reproduce
  1. cordova platform add ios
  2. cordova plugin add cordova-hot-code-push-plugin-renew
  3. cordova platform remove ios
  4. cordova platform add ios <<<<- this causes the "version not found" error
System info

Run cordova info (or ionic info) and paste it here, or give us information like:

  • Platform: iOS / Android 4.5.5/ 7.1.4
  • Platform version: latest
  • Cordova version: latest
  • Node version:latest

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

cordova-hcp server 报错

问题描述

按照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'
  }
}
System info

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 ---

ios 初始化报错

屏幕快照 2019-10-14 下午3 25 22
报错
屏幕快照 2019-10-14 下午3 26 26
报错函数

请问有遇到这种情况吗,我对ios开发不熟悉,请问这问题怎么解决

Conflict found, edit-config changes from config.xml will overwrite plugin.xml changes

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>

Doesn't build for Android with gradle 7.4.2

Problem

Plugin doesn't build for android with gradle 7.4

Steps to reproduce

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.
Cause of issue

compile 'com.fasterxml.jackson.core:jackson-core:2.4.4'

The compile directive is deprecated and should be implementation.

System 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:

android: 11.0.0
browser: 6.0.0
ios: 6.2.0

iOS blank white page after app restart

Problem

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?

Steps to reproduce

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.

  1. cordova platform add ios
  2. add cordova-hot-code-push-plugin-renew
  3. cordova prepare ios
  4. cordova build ios --device --debug (or --release; does not matter)
System info

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

npm i -g cordova-hot-code-push-cli downloading binary ngrok https://bin.equinox.io Error certificate has expired

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' }

Update happens but the content is still the same

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 build android -- chcp-dev无效

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');
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.