[InAppBrowserEvents] Adding an on Click Event

[InAppBrowserEvents] Adding an on Click Event

  
Forge Component
(0)
Published on 10 Mar by Rui Barbosa
0 votes
Published on 10 Mar by Rui Barbosa

Good Day,

I am trying to add an "Onclick" event and it is not functioning. 


inAppBrowserRef.addEventListener('click', loadClickCallBack);

function loadClickCallBack(event){
     if($parameters.DoConsoleLog)
        logEvent(event);
   
    $actions.TriggerOnClick(event.type,event.url,event.code || "! Inside Click Event !" || "");
}

Hi Steve

The InAppBrowser does not support an OnClick Event.

See documentation here.

You have very little control over what the user is doing inside the InAppBrowser.

What are you trying to accomplish?

Cheers

Hi Rui, stuck on loading on iOS 11, any fix on this?

Solution

Royce Caguiat wrote:

Hi Rui, stuck on loading on iOS 11, any fix on this?

I am currently using  "inAppBrowserEvents

and not having any issues. Is working great.


Solution

Hi Steve, please see attached image. current iOS version is 11.1.2. Tried it on multiple Apple devices and encountered the same issue

Steve Hodges 



 wrote:

Royce Caguiat wrote:

Hi Rui, stuck on loading on iOS 11, any fix on this?

I am currently using  "inAppBrowserEvents

and not having any issues. Is working great.