Open l3ender opened 5 years ago
Hi @l3ender Thank you for reporting!
For your needs you should use CodePush Management SDK. It's npm module which provides additional functionality for CodePush.
Here is documentation for CodePush Management SDK: https://docs.microsoft.com/en-us/appcenter/distribution/codepush/node
You should use getDeployments(appName: string)
method.
Could you please let me know if it was helpful or you have any questions?
Thanks @alexandergoncharov. Could you please advise on how this could be added in an Angular app?
When I try the following:
import { CodePush } from "code-push";
I get the following errors:
Could not find a declaration file for module 'code-push'. '~/workspace/node_modules/code-push/script/index.js' implicitly has an 'any' type. Try
npm install @types/code-push
if it exists or add a new declaration (.d.ts) file containingdeclare module 'code-push';
ts(7016)
Could you please advise? Thanks!
Edit: I should mention that there are no types available (see search on npmjs and https://github.com/microsoft/code-push/issues/341).
@alexandergoncharov Any ideas?
@alexandergoncharov Any input on this issue?
Hi @l3ender, Sorry for delay.
Right now we are working on the new codepush version and support will be slow down during this process. Please check UPDATE section of README: https://github.com/microsoft/cordova-plugin-code-push/blob/master/README.md
@alexandergoncharov Hi, it's been a few months and I'm wondering if you'd be able to assist on how to use CodePush Management SDK in Angular app. Thanks!
Hi @l3ender , I'm sorry for so long delay.
Right now we have types for CodePush SDK. Could you please try with the latest version of the CodePush SDK and let me know your results?
Thanks for the update. I'm trying to utilize the codepush management SDK but am facing a different error, for which I raised https://github.com/microsoft/code-push/issues/727.
Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
Description
Given a deployment key, how can I get the deployment channel/branch name?
Additional Information
We use code push in our app and want to be able to display the deployment channel name. Our
config.xml
has our deployment keys which are used forsync
ing for changes, but how can I get the deployment name (e.g. Production, Staging, Beta)?We have two places where we'd like this:
LocalPackage
update. This has thedeploymentKey
but no deployment name.This would help us quite a bit as everywhere else we are using deployment name (e.g. when release code push updates).
Thanks!