Ionic Deploy v5 API Not Working


#1

I created a new project with “ionic start” and set up the Pro Client as showing in: https://ionicframework.com/docs/pro/deploy/setup/

I then tried to call getConfiguration by following the directions here: https://ionicframework.com/docs/pro/deploy/tutorials/

    constructor(public navCtrl: NavController) {
        this.getInfo();
    }

    async getInfo() {
        const info = await Pro.deploy.getConfiguration();
        console.log('Received: ' + info);
        if (info) {
            this.currentVersion = info.currentVersionId;
            this.binaryVersion = info.binaryVersionCode;
        }
    }

In both Chrome and the Ionic DevApp info is always undefined…

I added the iOS platform, built and deployed to an iOS device (real hardware) and info is still always undefined…

There are no errors in the console… What am I missing?

ionic info:

Ionic:

   ionic (Ionic CLI)  : 4.3.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.0.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic 5.2.7, cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.2.0, (and 8 other plugins)

System:

   NodeJS : v8.9.4 (/usr/local/bin/node)
   npm    : 6.4.1
   OS     : macOS High Sierra
   Xcode  : Xcode 10.1 Build version 10B61

cordova plugin ls

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-ionic 5.2.7 "cordova-plugin-ionic"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"