nordnet/cordova-hot-code-push

node@8 and cordova@8 not working

ryanmtaylor opened this issue ยท 3 comments

Problem

I cannot get this plugin to push code and refresh the page even by copying and pasting the directions on the homepage and wiki.

Steps to reproduce

on their own the steps are:

npm i -g cordova@8.0.0 cordova-hot-code-push-cli@1.1.1

cordova create TestProject com.example.testproject.ryanmtaylor TestProject
cd ./TestProject
cordova platform add ios
cordova plugin add cordova-hot-code-push-plugin
cordova-hcp server

then cordova run from a new tab

Here is the console output:

ryan@device007 ~/Work/SANDBOX ๐Ÿ‘ป  cordova create TestProject com.example.testproject.ryanmtaylor TestProject
Creating a new cordova project.
ryan@device007 ~/Work/SANDBOX ๐Ÿ‘ป  cd ./TestProject
ryan@device007 ~/Work/SANDBOX/TestProject ๐Ÿ‘ป  cordova platform add ios
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.example.testproject.ryanmtaylor
	Name: TestProject
iOS project created with cordova-ios@4.5.4
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving ios@~4.5.4 into config.xml file ...
ryan@device007 ~/Work/SANDBOX/TestProject ๐Ÿ‘ป  cordova plugin add cordova-hot-code-push-plugin
Installing "cordova-hot-code-push-plugin" for ios
Installing dependency packages: 
{
  "xml2js": "^0.4"
}
Checking cordova-hcp CLI client...
Adding cordova-hot-code-push-plugin to package.json
Saved plugin info for "cordova-hot-code-push-plugin" to config.xml
ryan@device007 ~/Work/SANDBOX/TestProject ๐Ÿ‘ป  cordova-hcp server
Running server
Checking:  /Users/ryan/Work/SANDBOX/TestProject/www
local_url http://localhost:31284
Build 2018.03.26-17.41.45 created in /Users/ryan/Work/SANDBOX/TestProject/www
cordova-hcp local server available at: http://localhost:31284
cordova-hcp public server available at: https://3293e8d9.ngrok.io
File changed:  /Users/ryan/Work/SANDBOX/TestProject/www/index.html
Build 2018.03.26-17.42.51 created in /Users/ryan/Work/SANDBOX/TestProject/www
Should trigger reload for build: 2018.03.26-17.42.51
(etc.)
File changed:  /Users/ryan/Work/SANDBOX/TestProject/www/index.html
Build 2018.03.26-17.43.01 created in /Users/ryan/Work/SANDBOX/TestProject/www
Should trigger reload for build: 2018.03.26-17.43.01
File changed:  /Users/ryan/Work/SANDBOX/TestProject/www/index.html
Build 2018.03.26-17.44.01 created in /Users/ryan/Work/SANDBOX/TestProject/www
Should trigger reload for build: 2018.03.26-17.44.01

I run cordova run to run ios version in a simulator and it builds successfully. I also changed the config.xml file to point to the the correct ngrok.

System info
Collecting Data...


Node version: v8.10.0

Cordova version: 8.0.0

Config.xml file: 

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.testproject.ryanmtaylor" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>TestProject</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@cordova.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <plugin name="cordova-hot-code-push-plugin" spec="^1.5.3" />
    <chcp>
        <config-file url="https://3293e8d9.ngrok.io/chcp.json" />
    </chcp>
    <engine name="ios" spec="^4.5.4" />
</widget>


Plugins: 

cordova-hot-code-push-plugin,cordova-plugin-whitelist

iOS platform:

Xcode 9.2
Build version 9C40b

What are the last known working versions?

The plugin is working here with Cordova 8.0.0 and Node v8.9.4.

๐Ÿ‘‹ Hi! Thank you for your interest in this repo.

๐Ÿ˜ข We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

๐Ÿ”’ This will now be closed & locked.

โ„น๏ธ Please see #371 for more information.