dabs
Full Member
Posts: 78
|
Post by dabs on Jan 3, 2022 17:12:26 GMT
Hi,
I'm working on getting Rho.signature to work. When the user presses a button, I'm calling the following code:
var settings = {
outputFormat: "image",
compressionFormat: "png"
};
Rho.Signature.takeFullScreen(settings, function(params) {
// Some code here... });
However, what I get in my console is the following:
Uncaught API module is not found.
I've already modified build.yml:
extensions:
- rhoconnect-client
- uri
- barcode
- printing
- printing_zebra
- hardwarekeys
- mspec
- signature
Is there anything obvious which I'm forgetting?
Regards, DanĂel
|
|
|
Post by Dmitry Soldatenkov on Jan 4, 2022 2:22:54 GMT
Try :
Rho::Signature.takeFullScreen(options, callback)
|
|
dabs
Full Member
Posts: 78
|
Post by dabs on Jan 4, 2022 14:29:31 GMT
This is in the Javascript section, so the :: operator doesn't work there.
|
|
dabs
Full Member
Posts: 78
|
Post by dabs on Jan 4, 2022 14:56:36 GMT
Doing this on the JavaScript side is not a requirement per se, Ruby would also works for me. However, I do get this error if I try calling it from Ruby:
App error: uninitialized constant Rho::Signature
|
|
|
Post by Dmitry Soldatenkov on Jan 5, 2022 16:05:15 GMT
Hm... By some reason extension not linked. What the your target platform ?
|
|
dabs
Full Member
Posts: 78
|
Post by dabs on Jan 5, 2022 22:42:34 GMT
The reason why this wasn't working was that I was doing this in RhoSimulator. Once I tested on a real device (which is an Android device), everything works as expected.
I did not see this mentioned in the documentation, it may be a good idea to add it.
|
|
|
Post by Dmitry Soldatenkov on Jan 6, 2022 15:10:56 GMT
Yes, documentation for each APi should be updated. We has only summary table with API platform support info - docs.tau-platform.com/en/7.4/guide/apisummaryGenerally APIs like Barcode, Signature, NFC, MediaCapture etc. supported only on mobile devices.
|
|
|
Post by Dmitry Soldatenkov on Jan 6, 2022 15:13:25 GMT
|
|