title: Ionic Deploy: $ionicDeploy.load not working
body: <p>I'm trying out Ionic deploy. And it seems everything works fine up to the point of loading the app again after getting the update. I've provided screenshots. Let me know if there is anything else i can provide. Thank you.</p>
  
  <p>Console error once the app is finished downloading and extracted, and then it tries to load it again.</p>
  
  <p><img src="https://i.stack.imgur.com/7K2rb.png" alt=""></p>
  
  <p>Error on my webview</p>
  
  <p><img src="https://i.stack.imgur.com/a9C8D.png" alt="">
  ionic source code for load method in deploy scripts
  <img src="https://i.stack.imgur.com/oPu9p.png" alt=""></p>
  
  <p>My javascript implementation:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$ionicPlatform.ready(function() {              
                  // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
                  // for form inputs)
                  if(window.cordova &amp;&amp; window.cordova.plugins.Keyboard) {
                      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
                      screen.lockOrientation('portrait');
                  }
                  if(window.StatusBar) {
                      StatusBar.styleDefault();
                  }
                  
                  
                  // Check for updates
                  $ionicDeploy.check().then(function(response) {
                          hide();
                          console.log(response);
                          // response will be true/false
                          if (response) {
                            show('Downloading update...');
                              // Download the updates
                              $ionicDeploy.download().then(function() {
                                 hide();
                                 show('Extracting update...');
                                  // Extract the updates
                                  $ionicDeploy.extract().then(function() {
                                      hide();
                                      // Load the updated version
                                      $ionicDeploy.load();
                                  }, function(error) {
                                    show('Error extracting new update...');
                                    setTimeout(function(){
                                      hide();
                                    }, 1500);
                                      // Error extracting
                                  }, function(progress) {
                                    show('Extract progress...' + progress);
                                    // setTimeout(function(){
                                    //   hide();
                                    // }, 5000);
                                      // Do something with the zip extraction progress
                                      // $scope.extraction_progress = progress;
                                  });
                              }, function(error) {
                                show('Error downloading...');
                                setTimeout(function(){
                                  hide();
                                }, 1500);
                                  // Error downloading the updates
                              }, function(progress) {
                                show('Download progress...' + progress);
                                // setTimeout(function(){
                                //   hide();
                                // }, 5000);
                                  // Do something with the download progress
                                  // $scope.download_progress = progress;
                              });
                          }
                      },
                      function(error) {
                          // Error checking for updates
                          show('Error checking for updates');
                          setTimeout(function(){
                            hide();
                          }, 1500);
                      });
              });                                                        
          })</code></pre>
  </div>
  </div>
  </p>