Bug fixes:
- Issue #295. Fixed build issues with Cordova 7 on iOS. Merged pull request #296, thanks to @chauthai.
Documentation:
- Merged pull request #281. Thanks to @cadesalaberry.
Bug fixes:
- Issue #213. Large sync lead to timeout on iOS. Merged pull request #217, thanks to @bbreijer. Now iOS version should be more memory efficient when loading large set of files. It also can now download large files.
- Merged pull request #218. Fixes build failure on the after_prepare hook. Thanks to @warent.
- Issue #228. Added missing error code
NEW_APPLICATION_CONFIG_IS_INVALID
to JS API. - Issue #229. Thanks to @zwwhappy for pull request #225, and @sfnt for pull request #231.
Bug fixes:
- Merged pull request #205. Fixes Android app crashes, when
content_url
is missing in server'schcp.json
config. Thanks to @Mikey1982. - Issue #208. In some cases
plugins/ios.json
file couldn't be found by the hook, that checks, ifcordova-plugin-wkwebview-engine
plugin is installed in the project. Now hook will check for the plugin's folder directly.
Bug fixes:
- Issue #197. Android can now update files with spaces in their names.
Improvements:
- Merged pull request #204. Initial installation of the assets on the external storage on Android is now much faster. Thanks to @Mikey1982.
- Added new JS method:
getVersionInfo
. Based on pull request #170 from @Manduro - thank you. For documentation, please, refer to wikki page.
Bug fixes:
- Issue #155. Android app should not crash if server has a bad
chcp.json
file.
Improvements:
- Issue #153. You can now pass
chcp.json
file url intofetchUpdate
method on JS side. Also, you can provide additional HTTP headers to the request. For example, authorization info. These headers will be used for loading configuration files and updated/changed files from your server. Thanks to @davidovich for pull request #150. - Issue #99. iOS build version can now be a string. So, changing it from 1.0.0 to 1.0.1 will trigger reinstallation of
www
folder. Before that it had to be an integer. - Issue #160. Old releases are now gets removed after update installation. Previously cleanup was performed only on application restart.
Bug fixes:
- Issue #137. Fixed installation failure on Windows. Thanks to @oxiao for providing the fix.
Bug fixes:
- Issue #139. If you don't have
cordova-hcp
client - installation will not fail. - Fixed typo in
before_plugin_install
hook. If installation failed - it will now throw a correct error.
Enhancements:
- iOS. Switched from custom API version check macro to the Cordova's one:
__CORDOVA_4_0_0
. Less JS code in the hooks, more proper API switching in the code.
Docs:
- Minified readme file. Moved documentation into Wiki.
Enhancements:
- Merged pull request #101. Plugin now dispatches
chcp_beforeInstall
event before installing new update. Thanks to @toostn. - Merged pull request #107. In Android we now set connection timeout for configs/files download, so the process would not hang. Thanks to @kenvuz.
- Issue #105. Plugin now dispatches
chcp_beforeAssetsInstalledOnExternalStorage
event, when it's about to install assets on external storage. - Issue #102. You can now check from the JS side, if update was loaded on the device and ready to be installed. Later on will be added method to check update availability on the server side.
- Issue #45. Added
<native-interface version="" />
tag to define application's native interface version. Plugin will now use it instead of the application's code version. - Issue #85. Adde support for
cordova-plugin-wkwebview-engine
plugin. - Dependency node modules are now installed in the plugin's folder, instead of the project's root folder.
Docs:
- Added info about migrating to v1.3.0 in
Migrating from previous version
section. - Added
Check if update was loaded and ready to be installed
section. - Updated
Cordova config preferences
section. - Updated
JavaScript module
section.
Bug fixes:
- Fixed issue #129.
plugin.xml
was missing scheme for android. Thanks to @Christianuchermannuc. - Fixed issue #132. Problem was with the EventBus on Android: package name has changed.
- Fixed issue #109. In the plugin's header file iOS Cordova platform version is now set to
4
by default. Previously it was3
.
Bug fixes:
- Fixed issue #91. Build options now will be merged into existing preferences from the
config.xml
instead of changing them all. - Fixed issue #93. Plugin will not reload Android application to index page, when app is resumed from the background state.
- Fixed issue #97.
- Merged PR #94. Android version of the plugin should now be compatible with other plugins, that are using EventBus. Thanks to @Steffaan.
Bug fixes:
Bug fixes:
- Fixed issue #83.
- Fixed Cordova 5.4 warnings in the hooks.
Bug fixes:
- Fixed the issue, where plugin failed to update, when there was a
#
or?
in the index page. For example<content src="index.html#/tabs/dash/" />
- Fixed deletion of the old releases.
Bug fixes:
- Fixed application crash when we install new app with v1.2.0 on the device with the previous version of the plugin.
You can find full list of changes below. But in short, this update brings two main things.
First of all, plugin now supports Cordova iOS platform v4, and can still be used on v3. This is achieved by the hook, that is executed when you build your project. It reads platforms/package.json
and depending on the ios
version - set's native macro in the plugin sources, which will switch the used API.
Second one is aimed to make updates more stable and more bulletproof, plus fix files caching on iOS. This was achieved by changing the way on how project files are stored on the external storage. From now on each release has it's own www
folder. You can read about this in more details in the How web project files are stored and updated
section of the readme.
Bug fixes:
- Fixed issue #47. Changed the way the files are stored on the external storage. As a result, webview cache is now flushed automatically.
- Fixed issue #64. Plugin now supports Cordova iOS platform v4, and also backwards compatible.
- Fixed issue #70. Empty
<chcp />
tag inplugin.xml
could sometimes lead to the build failures. Thanks to @alexbuijs for the pull request. - Fixed issue #72. On Android
auto-download
preference from theconfig.xml
is not ignored any more. - Fixed issue #73.
chcp.configure
callback is now gets called. - Fixed issue #77. On iOS
chcp.configure
now works the same way, as on Android: it accepts an object as an options, not a string. - Fixed potential rushing conditions on update download/installations. Right now there can be only one running update task.
Enhancements:
- Changed the way on how web files are stored on the external storage. That made updates more stable, plus fixes the caching issue.
- Merged pull request #67. If code version of the application has changed (incresed or decreased) - it is considered as updated and
www
folder is reinstalled on the external storage. Thanks to @hassellof. - Merged pull request #71. Removed empty
<chcp />
tag from theplugin.xml
config. Thanks to @alexbuijs. - Added
chcp.error
object in JS module of the plugin, so you could use it to match the errors by names instead of codes.
Docs:
- Updated
Ionic quick start guide
section. - Updated
How web project files are stored and updated
section. - Updated
Change plugin preferences on runtime
section. - Updated
Error codes
section.
Bug fixes:
- Android. Fixed issue #43. Merged pull request #44. Thanks to @andreialecu for helping to fix that problem.
- iOS. Fixed issue #53.
- iOS. Fixed rollback procedure, if update installation has failed.
- iOS. Fixed issue, when update failed to install if it contained unexisting folders. Thanks to @legege for providing pull request #50.
- Fixed issue #49 and issue #48. Added support for Cordova v5.4.
- Other fixes for both platforms, that aimed to make update procedure safer for the user.
Enhancements:
- Merged pull request #40. Preparation to add auth headers to the network requests. Thanks to @davidovich.
- Merged pull request #52. Thanks to @legege.
Docs:
- Documentation updates regarding
min_native_interface
for Android. Thanks to @andreialecu for providing pull request #46.
Release holds only some documentation updates:
- Added section:
Migrating from previous version
. - Small update to quick start guides.
Enhancements:
- Moved local development mode to the separate plugin: https://github.com/nordnet/cordova-hot-code-push-local-dev-addon
- Node modules installed only once after plugin is added. Installation of the new plugin is not gonna trigger it, as before.
- You can now build your project on Xcode 6.4, as long as you don't use local development add-on. Issue #17.
- Minor cleanup and fixes.
Bug fixes:
Since local development mode was moved to the separate plugin - that should fix the issue #26 with the Swift on iOS, when it lead for the app to be rejected by the Apple. When development is done - just remove development plugin and that's it. For more information please visit documentation page of the local development add-on.
Bug fixes:
- Fixed issue #31. Additional checking that
www
folder was installed on the external storage.
Bug fixes:
- iOS. Fixed issue #2. Ionic application should refresh it's content and ignore UIWebView cache.
Enhancements:
- Merged pull request #27. Error message now has an url of the file that we failed to load from the server. Thanks to ptarjan.
- Merged pull request #29. Error message now has an url of the config file that we failed to load from the server. Thanks to ptarjan.
Bug fixes:
- Fixed issue #8.
ionic plugin add cordova-hot-code-push
will not hang. But from now on you will have to install CLI client manually. - Fixed issue #11.
ionic state restore
will not hang any more. - Fixed issue #13. Plugin is not gonna crash your application, if
content_url
is not set in the application config. Although, you should always setcontent_url
in order for plugin to work.
Enhancements:
- As asked in issue #12 - plugin is not gonna show unnecessary messages in the console.
- Changed workflow on
chcpbuild.options
. From now on you should addchcp-
prefix to the build options, when you use them with thebuild
command:cordova build -- chcp-buildOptionName
. More info can be found in the Readme. - Plugin installation script now takes node dependencies from the package.json.
- Removed unused node dependencies.
Docs:
- Updated
Installation
section. - Updated
Quick start guides
. - Updated
Build options
section. - Added
Update workflow
section. - Some gramma updates thanks to @ptarjan.
Bug fixes:
- Fixed issue #3. Updated socket.io client: now it builds with Xcode 7.
- Added change log file.
- Updated readme file.
Bug fixes:
- iOS. Fixed issue with local development mode. Now it is disabled by default.
- iOS. Fixed application crashes when plugin tries to connect to local server, but
config-file
preference is not set inconfig.xml
. - iOS. Fixed Swift header duplicates issue which occur when you change your project name.
- iOS. Fixed Swift header name generation: now based on project module name as it should be.
- Now it works with Ionic framework. Although, some minor issues still remains.