Ionic v1: Pro.deploy.info() not resolving


#1

Heya, I’m developing an app and am trying to set up the deploy API.

12      Pro.deploy.info().then(function(res){
13          $timeout(function(){
14              channelName = res.channel;
15          });
16      });`

The problem is, the promise never seems to resolve since line 13 isn’t reached. I’ve followed the instructions and copied the files from the NPM module to lib/, added a reference to it in index.html and Pro.init() in run(). The only error raised is “the cordova-plugin-ionic plugin is not installed” when tested on chrome, which (apparently?) is always the case when testing in a browser.


#2

… which is also the reason why the Pro stuff can not be used in the browser.

You have to test on an emulator/simulator or real device.