Data transfer from android to telephone interchange

I am developing an Android application using PhoneGap.

My application starts with a custom URI with something like myscheme: // mydata. I can get the data in the class of my activity as follows.

Intent intent = getIntent(); if(intent.getAction().equals(Intent.ACTION_VIEW)) { Uri data = intent.getData(); if (data != null) data.toString(); } 

However, I could not find a way to transfer this data to my javascript code on the cell phone side. Any help is appreciated, Regards

+4
source share
3 answers

You might want to check out the WebIntent plugin - https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent in the replica PhoneGap plugins https://github.com/phonegap/phonegap-plugins .

+3
source

You tried to check the window. Invoke_params in your javascript?

The following link seems to indicate that it should work on iOS at least http://remysharp.com/2010/09/01/custom-url-schemes-in-phonegap/

0
source

To transfer data from android to javascript using phonegap, you can try creating a plugin and using the exceute() method you can transfer data.

0
source

All Articles