Hi everyone!
Is it possible to write an iOS Crosswalk Extension that will return a String so
that the web page can invoke this function and retrieve the String?
For instance, I defined following function
func jsfunc_deviceInfo(callId: UInt32) -> String {
return "someJsonString"
}
When running the app and inspecting the function with the Safari debugger I get
following console output:
> NativeApi.deviceInfo
< function () {
this.invokeNative('deviceInfo', []);
} = $1
When executing the function in the Safari console, "undefined" is returned,
also the native function is actually getting executed:
> NativeApi.deviceInfo()
< undefined
Best regards,
Björn_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help