eclipsesource / eclipsesource/tabris-js

Support "org.apache.cordova.inappbrowser"

Open
#460 0 comments 0 reactions 0 assignees View on GitHub
compatibility cordova
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

Requiring the npm module fails with "Cannot find module 'cordova/exec'".

Executing the exec command directly without requiring the JS plugin works however (atleast on Android):

``` javascript
var page = tabris.create("Page", {topLevel: true}).open();

tabris.create("Button", {text: "Open Google"}).on("select", function() {
var noop = function() {};
cordova.exec(noop, noop, "InAppBrowser", "open", ["http://google.com", "_system"]);
}).appendTo(page);
```

Using target "_self" and "_blank" also works, but the InAppBrowser's layout is broken and the keyboard doesn't open upon tapping on the current URL:
![screenshot_2015-05-25-14-12-37](https://cloud.githubusercontent.com/assets/2341769/7797121/438fd2c4-02e8-11e5-96fe-b1f1097bdb99.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.