Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Get URL params from inappbrowser on exit

$
0
0

@eramos-dve wrote:

I’m working with inAppBrowser (v 3.0.0).

I would like to get the URL params when the user close the inAppBrowser window.

This is my config :

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (C:\Users\eramos\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.1.1
   @angular-devkit/build-angular : 0.13.6
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.6
   @ionic/angular-toolkit        : 1.4.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 11 other plugins)

System:

   Android SDK Tools : 26.1.1 (C:\Users\eramos\AppData\Local\Android\Sdk)
   NodeJS            : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm               : 6.9.0
   OS                : Windows 10

Here is my code :

const browser = this.iab.create('URL', '_self', 'location=yes');
      browser.on('exit').subscribe(event => {
        console.log('URL :', event.url);
        console.log('back URL :', window.location);
      });

I’m getting undefinied with the first console.log
And the current URL (not the inAppBrowser url) with the second one.

I know this post is the same, but no answer.

The doc is an old one, with only old methods : https://github.com/apache/cordova-plugin-inappbrowser#reference

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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