1698
Views
24
Comments
Solved
[InAppBrowser Plugin] How to use InAppBrowser Plugin.
Question
inappbrowser-plugin
Mobile icon
Forge asset by OutSystems

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

2022-11-12 11-28-30
Gonçalo Martins
Staff
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.

UserImage.jpg
hafsa zaineb

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 https:// 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 https:// website ? . 

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello Hafsa.

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

Cheers,

GM

UserImage.jpg
hafsa zaineb

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.


2022-11-12 11-28-30
Gonçalo Martins
Staff

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.



UserImage.jpg
hafsa zaineb

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.

UserImage.jpg
hafsa zaineb

Attached is the oml of what im saying

HashooFoundationNew.oml
2022-11-12 11-28-30
Gonçalo Martins
Staff
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.

UserImage.jpg
hafsa zaineb

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 https:// 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 https:// website ? . 

2022-11-12 11-28-30
Gonçalo Martins
Staff

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!

UserImage.jpg
hafsa zaineb

Hi Goncalo, 

Let me rephrase my question:

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

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

UserImage.jpg
Antonio Allen

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

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

UserImage.jpg
Cipriano Teibão

Any updates? 

I need to load HTTP sites in my app using inappbrowser in iOS, how can I do it? It works fine with HTTPS but not HTTP

2021-06-09 13-39-18
Agno Silveira
 
MVP

Good afternoon,

I'm using the plugin to open a youtube video, however the video is opening on the youtube application.

How do I open the video in my app using the InAppBrowser Plugin?

Thank you.

2021-06-09 13-39-18
Agno Silveira
 
MVP

Agno Silveira wrote:

Good afternoon,

I'm using the plugin to open a youtube video, however the video is opening on the youtube application.

How do I open the video in my app using the InAppBrowser Plugin?

Thank you.


2022-11-12 11-28-30
Gonçalo Martins
Staff

Agno Silveira wrote:

Agno Silveira wrote:

Good afternoon,

I'm using the plugin to open a youtube video, however the video is opening on the youtube application.

How do I open the video in my app using the InAppBrowser Plugin?

Thank you.


Hi Agno.

Have you tried that on more than one mobile phone?

With the settings you have it should work fine. It seems that you've chosen to open all youtube links always with the application somewhere in the past for your device.

And are you using Android or iOS?


2021-06-09 13-39-18
Agno Silveira
 
MVP

Hi Goncalo,

I tried on more than one smartphone.

Android.

Thank you.

2021-06-09 13-39-18
Agno Silveira
 
MVP

Agno Silveira wrote:

Hi Goncalo,

I tried on more than one smartphone.

Android.

Thank you.

Hi,
I changed the "Entities.Target.SYSTEM" property to "Entities.Target.IN_APP_BROWSER"
now it worked.
Thank you.


UserImage.jpg
Darryl NG

Hi,


I tried the Client Action flow and also tried using either the entity "Entities.Target.SYSTEM" or "Entities.Target.IN_APP_BROWSER". However, it is not working. I am unable to open the url in InApp browser as there is no response when I click.

May I have someone here to help and give me some advice as to how I can make it work.


Thanks in advance.


UserImage.jpg
Darryl NG

Darryl NG wrote:

Hi,


I tried the Client Action flow and also tried using either the entity "Entities.Target.SYSTEM" or "Entities.Target.IN_APP_BROWSER". However, it is not working. I am unable to open the url in InApp browser as there is no response when I click.

May I have someone here to help and give me some advice as to how I can make it work.


Thanks in advance.



Thanks all.


I resolved the issue. 


Most of the plugin or Cordova plugin will require it to be tested using a physical phone.

Testing using the web-browser or web simulator will not work.



Cheers

2019-11-25 08-52-26
Irfan

While implementing this plugin, it is showing the output as Plugin not available, even I am clicking on the button, nothing is working.

Help me to implement this.


Thank you so much.

UserImage.jpg
Vitor Oliveira
Staff

Hello Irfan, 


Did you generate the app again after adding the InAppBrowser to the app? It's mandatory to recompile the app to install the plugin. 


Best regards.

2019-11-25 08-52-26
Irfan

Yes Vitor, I did that.

The error message is" inAppBrowser is not defined".


UserImage.jpg
oscar isabella

Irfan You must use un android emulator or a movile phone to test de plug ins.

UserImage.jpg
oscar isabella

Hi guys,

Anybody can help me,  i have the following error. i made an example, calling  www.google.com in the plug in, if i  wanna see a zip or pdf, the plug in not make nothing,  but if click on json, txt, or another extension file the plug in show okay the file in the window.

Thank you so much.

img1.png
2019-11-08 16-23-42
César Mateus Conceição

How can I get a geo position on a webpage using inapp ? 

I'm using inapp in conjunction of a know webpage where I need a geo location from user device.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.