Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Opening external link and closing it at an event

$
0
0

I am having same issue, i need to track url of AppBrowser and close the poup on some specific url,
for that this is what i tried but neither loadstart trigger nor loadstop any clue on this.

  var InAppOptions = {location: 'yes',clearcache: 'yes',toolbar: 'no'};
     $scope.loginWithfb = function(){
            UserServices.GetAuthEndpoints().then(function(authPath){
                $cordovaInAppBrowser.open($config.BasePath+authPath,'_blank',InAppOptions)
          })
   }

        $rootScope.$on('$cordovaInAppBrowser:loadstart', function(e, event){
                  console.log('loadstart',event.url);
          });

          $rootScope.$on('$cordovaInAppBrowser:loadstop', function(e, event){
                  console.log('loadstop',event.url);
          })

i have also tried bengtler suggestion but no luck


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>