Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Cant make it work remotely #357

Closed
fasma89 opened this issue Jun 4, 2018 · 1 comment
Closed

Cant make it work remotely #357

fasma89 opened this issue Jun 4, 2018 · 1 comment

Comments

@fasma89
Copy link

fasma89 commented Jun 4, 2018

Hello.
I'm struggling to make it work for my Cordova app but , it does NOT fetch the updates.
Steps that i did:

  1. Insert into config.xml file of my cordova project , the "<chcp> <config-file url="http://mydomain.com/www/chcp.json" /></chcp> ( i can see the file from the browser).
  2. I've put into .chcpenv the
{
 "content_url": "http://mydomain.com/www/",
 "config_url": "http://mydomain.com/www/chcp.json"
}

3.In my chcp.json , ive put

{
  "name": "myappname",
  "s3bucket": "AmazonName",
  "s3prefix": "",
  "s3region": "us-east-1",
  "ios_identifier": "",
  "android_identifier": "",
  "update": "now",
  "content_url": "http://mydomain/www",
  "release": "2018.06.04-03.10.42"
}
  1. run cordova-hcp build.

  2. cordova build android.

  3. install to nox emulator.

  4. change something in www\login.html

  5. run cordova-hcp build

  6. copy the www to remote server (http://mydomain.com/www/) folder.

  7. restart the emulator but no updates.

System info

  • Windows 10
  • Cordova Version:
  • 8.0.0
  • Installed platforms:
  • android 7.0.0
  • browser 5.0.3
  • NPM version:
  • 5.6.0

Some logs of chcp :
D/CHCP: Starting loader worker
I/dalvikvm: Could not find method android.app.ActivityManager.getAppTasks, referenced from method de.appplant.cordova.plugin.background.BackgroundExt.excludeFromTaskList
W/dalvikvm: VFY: unable to resolve virtual method 100: Landroid/app/ActivityManager;.getAppTasks ()Ljava/util/List;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0016
I/chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
I/chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
D/CHCP: Nothing to update

@nordnet-deprecation-bot
Copy link
Contributor

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

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants