You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/29 08:39:48 UTC

[GitHub] [cordova-plugin-inappbrowser] Bala893 opened a new issue #456: In IOS link was not open in the ngOnInit function in ionic 3

Bala893 opened a new issue #456: In IOS  link was not open in the ngOnInit function in ionic 3
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/456
 
 
   # Bug Report
   
   ## Problem
   Unable to load the link in the ngOnInitfunction in ionic 3 version
   ### What is expected to happen?
   While opening the app default web link should be open in the mobile app
   
   
   ### What does actually happen?
   But it displayed the home page
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   import { Component } from '@angular/core';
   import { NavController } from 'ionic-angular';
   import { InAppBrowser, InAppBrowserOptions } from '@ionic-native/in-app-browser/ngx';
   
   
   @Component({
     selector: 'page-home',
     templateUrl: 'home.html'
   })
   export class HomePage {
   url: String; 
     constructor(public navCtrl: NavController, private inAppBrowser: InAppBrowser) {
    
   console.log('testing');
     }
      ngOnInit(){
        console.log('nginit');
        this.openWebpage_fun();
      }
   
   
   ionViewDidLoad() {
       console.log('ion view load before');
     }
   
      openWebpage_fun() {
         console.log('ion view load function');
       const options: InAppBrowserOptions = {
         zoom: 'no',
         hidden:'no',
         toolbar:'no',
         location:'no',
         presentationstyle:'fullscreen',
         clearcache:'yes',
         clearsessioncache:'yes'
       }
       var url_val='https://google.com';
       // Opening a URL and returning an InAppBrowserObject
       const browser = this.inAppBrowser.create(url_val, '_blank', options);
      // Inject scripts, css and more with browser.X
     }
   
   }
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova: 8.1.2
   Platforms: IOS
   Plugins: inappbrowser- 3.0.0
   CLI - 3.9
   Xcode: 10.1
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org