Open mohamedMobileSpot opened 4 years ago
To show the version of the currently installed codepush update, use codePush.getCurrentPackage
. See the docs here https://github.com/microsoft/cordova-plugin-code-push#codepushgetcurrentpackage
To show the version of the currently installed codepush update, use
codePush.getCurrentPackage
. See the docs here https://github.com/microsoft/cordova-plugin-code-push#codepushgetcurrentpackage
i know that codePush.checkForUpdate and codePush.getCurrentPackage function give me the localPackage information but they only give the current information only if the binary code is from code push but for my case i want it evry time i need it even when the app is loaded from store not updated from code push
codepush.sync()
or codepush.checkForUpdate()
codePush.getCurrentPackage()
In case of cordova platform
- when you use
codepush.sync()
orcodepush.checkForUpdate()
- get details about the updates by
codePush.getCurrentPackage()
- to store and retrive required information in entire app use localStorage
- Window.localStorage
thank you for the solution i will test it 👍
Additional Information
cordova-plugin-code-push version: 1.13.1 "cordova-plugin-whitelist": "^1.3.4", "code-push": "^3.0.1", "cordova-android": "^8.0.0",