Give us feedback
inappbrowserevents
Mobile icon

InAppBrowserEvents

Stable version 1.0.9 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 4 Jan by 
João Barata
4.0
 (1 rating)
inappbrowserevents

InAppBrowserEvents

Details
InAppBrowser implementing this plugin events
Read more

Another InAppBrowser plugin implementing the LoadStart, LoadStop, LoadError and Exit events from the cordova plugin.

It also tries to create a way for you to close your InAppBrowser.

What’s new (1.0.9)

New Features

  • Added a new event "Message" that allows you to receive data sent directly from the page loaded inside the InAppBrowser.
    • The page loaded inside the InAppBrowser needs to use a "webkit.messageHandlers.cordova_iab.postMessage() method and use an object named data that needs to be deserialized into a string.


Example:

// check if the we are inside an InAppBrowser window

if(!!webkit?.messageHandlers?.cordova_iab?.postMessage){

    //create data object

    var data = {};

    // add custom message atributes

    data.message = "Hello World";

    data.myproperty = "this is another property"

    webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify(data));

}

Improvements

  • Added an icon to the web block that is only visible in Service Studio for better visibility of its usage
  • Added missing descriptions to the events of the InAppBrowser web block including the example JS above
  • Added the version of the component to the module description for better tracking of the version installed
  • Updated the InAppBrowser dependency to version 2.4.6
Reviews (0)