[InAppBrowser Plugin] How to use InAppBrowser Plugin.

[InAppBrowser Plugin] How to use InAppBrowser Plugin.

  
Forge Component
(0)
Published on 27 Apr by OutSystems R&D
0 votes
Published on 27 Apr by OutSystems R&D

I have installed / downloaded this app in my environment but I dont know how to make it work as i have never used such plugin and im totally new to outsystems 10. Im using silkUI mobile theme. Any guidance will be appreciated. 


i know we have to 

Use the Open client action in order to open the given URL

but how to do that is the question

Hello Hafsa.

To use the InAppBrowser Plugin you can do something simple like this:

Cheers,

GM

Gonçalo Martins wrote:

Hello Hafsa.

To use the InAppBrowser Plugin you can do something simple like this:

Cheers,

GM

I did this still im redirecting to the website instead getting that perticular website's page run in my app.


Hello Hafsa.

Can you give me more details about your issue.You're saying that you're redirected to "the website". 

What website? You'll always see an instance of a browser being opened with the target url.



I have links to an external website that I want to open in my app. Instead of opening those links/pages in my app it redirects to the eternal website. 

lets say i want to open www.outsystems.com in my app but when i click the link to it ,it takes me to the website of outsystems out of my app instead of opening it in my app.

Attached is the oml of what im saying

Solution

Hello Hafsa.

I think I found your problem!

In the method Open from the plugin, you're assigning the value Entities.Target.IN_APP_BROWSER to the input Target and you should have the value Entities.Target.SYSTEM.

Solution

Gonçalo Martins wrote:

Hello Hafsa.

I think I found your problem!

In the method Open from the plugin, you're assigning the value Entities.Target.IN_APP_BROWSER to the input Target and you should have the value Entities.Target.SYSTEM.

Hi Goncalo,

I think It did the trick but as the website Im linking my app to uses http:// and not https:// so it says


"The page is trying to load scripts from unauthentic sources."


in my browser. and when i unblock it from my browser it displays the page as I want

How can i make it accept http:// website ? . 

The most secure thing should be to use https on your end too.

The Website as you said, if you're the owner, you need to disable the https - but I clearly advise you not to do it!

Hi Goncalo, 

Let me rephrase my question:

What I meant was that website is using http:// so its not letting my app load the website's pages.

Is there a way that my app can load an http:// website pages without changing the website to https://

I am also running into this issue. Can the app be configured to load http:// website pages?

*Please note that this issue only occurs on iOS builds. Android loads both http:// and https://