Work on some testing with telephone communication on iphone; I have a plugin that returns simple json data as follows:
NSString* retStr = [[NSString alloc]
initWithFormat:@"%@({ code: '%@', image: '%@' });",
resultText.text,resultImage.image];
[ webView stringByEvaluatingJavaScriptFromString:retStr ];
And my call from JS:
var mydata = PhoneGap.exec("MyModile.myFunction", 'mycallback');
function mycallback (data) { alert (data); }
Does not return anything on return.
Any idea?
Disco source
share