I have a js method testPN(param), which I need to call from my native app. I am using these lines to achieve that -
NSString *jsStatement = [NSString stringWithFormat:@"testPN(%@);", custData];
[self writeJavascript:jsStatement];
This somehow does not work. If I change to testPN() without any argument and call it like this it works -
NSString *jsStatement = [NSString stringWithFormat:@"testPN();"];
[self writeJavascript:jsStatement];
custData is just a regular non-null NSString* Any idea as to what I could be doing wrong?