nordnet / cordova-hot-code-push

[DEPRECATED] - This plugin provides functionality to perform automatic updates of the web based content in your application.
https://github.com/nordnet/cordova-hot-code-push/issues/371
MIT License
979 stars 467 forks source link

App Keeps Crashing in Android after installing this Plugin #355

Closed Mr-Anonymous closed 6 years ago

Mr-Anonymous commented 6 years ago

When I remove the plugin, my Android App works. When I install this plugin, the App does not even launch. It says App has stopped. Restart App.

I tried the following:

  1. Tried installed the plugin both using cordova plugin add cordova-hot-code-push-plugin and cordova plugin add https://github.com/nordnet/cordova-hot-code-push.git.

  2. I have this set-up in my config.xml

    <chcp>
        <config-file url="https://www.example.com/appstore/www/chcp.json" />
        <native-interface version="2.0.0.1" />
    </chcp>
  3. I have this in chcp.json:

    {
    "name": "Example",
    "ios_identifier": "id123412345",
    "android_identifier": "com.app.mobileapp",
    "update": "start",
    "content_url": "https://www.example.com/appstore/www",
    "release": "2018.05.17-20.24.50"
    }
  4. The appstore/www directory exists in my server.

I have followed the Wiki and the issues here and I feel my set-up seems fine. I dont use any javascript for this plugin and it should work as default. But when I run the command ionic cordova run android, when the App is launched, it doesnt even open. It crashes straight away.

I have Android 7 and this is my ionic set-up:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    Cordova Platforms : android 7.0.0 ios 4.5.4
    Ionic Framework   : ionic1 1.3.3

System:

    ios-deploy : 1.9.2 
    ios-sim    : 5.0.13 
    Node       : v9.3.0
    npm        : 5.7.1 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.2 Build version 9C40b 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

When I uninstall this plugin, it works. When I install this plugin, it crashes. These are the plugins I have in my set-up:

cordova-android-support-gradle-release 1.4.2 "cordova-android-support-gradle-release"
cordova-hot-code-push-plugin 1.5.3 "Hot Code Push Plugin"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-headercolor 1.0 "HeaderColor"
cordova-plugin-ignore-lint-translation 0.0.1 "cordova-plugin-ignore-lint-translation"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-ios-camera-permissions 1.2.0 "iOS Permissions"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
ionic-plugin-deeplinks 1.0.15 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"

Has anyone else had this problem? Can someone guide me here please?

nordnet-deprecation-bot commented 6 years ago

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