0

I have made an application where an activity is browsable. I followed the same code as here.

In Android code I can easily can get the URL from where it was redirected.

Uri data = getIntent().getData();
String scheme = data.getScheme(); // "http"
String host = data.getHost(); // "twitter.com"
List<String> params = data.getPathSegments();
String first = params.get(0); // "status"
String second = params.get(1); // "1234"

How can I get this Intent data to JavaScript? Is there an easy way?
I am working with Worklight 6.1, that works with Cordova 3.1.

Community
  • 1
  • 1
Ken Vernaillen
  • 859
  • 1
  • 7
  • 37

1 Answers1

2

I think this training module will be beneficial:

The training module, and sample, show how to transfer data from Hybrid to Native and back.

Idan Adar
  • 44,156
  • 13
  • 50
  • 89