While using ionic auth - application not found error


#1

Hi,

I have built a basic ionicn auth pages on the ionic creator following Matt video https://www.youtube.com/watch?v=6BMagJD1NNc.

following Matt’s tutorial the ionic creator created two ionic cloud modules:

  1. ionic.cloud.min.js - full of ionic JavaScript code
  2. ionic.cloud.init.js - (### is my app id from ionic.io dashboard)
angular.module('ionic.cloud.init', ['ionic.cloud'])

.config(function($ionicCloudProvider) {
  $ionicCloudProvider.init({
    "core": {
      "app_id": "###"
    }
  });
})

I am executing a signup and login function identical to those found in the documentation but nothing happens.

function ($scope, $stateParams, $ionicAuth, $ionicUser, $state) {
    
    $scope.data = {
        'name': '',
        'email': '',
        'password': ''
    };
    
    $scope.error = '';
    
    $scope.signup = function(){
        console.info('Trying to signup user ' , $scope.data);
        
        //Clear any old error messagea
        $scope.error = '';
        
        //Try to create a new user
        $ionicAuth.signup($scope.data).then(function() {
                //ionic successfolly created a new user and it will now login that user
                $ionicAuth.login('basic', $scope.data).then(function() {
                        //ionic user is logged in and the app transfears to the main page
                        $state.go('side-menu21.page6');
                    },
                    function(err){
                        $scope.error = err.details[0];
                    }
                );
            },
            //ionic did not succeed to create a user and it will now display an error message
            function(err){
                $scope.error = err.details[0];
            }
        );
    };
}

using the inspector I see that the signup function is executed, a call to ionic.io is made but the call to ionic.io returned with a 404 status and a text message saying that “App ‘###’ not found”

I have made shore that the application ID in the creator is identical to the app ID in ionic.io.

Any ideas on what I need to check next ?

Thanks

Erez