android - Unable to utilize the Printing API in Rho 4.1 -
i have upgraded rho 4.1 in attempts utilize new printing api. have had 0 success. have attempted both js samples , rough ruby implementation connect bluetooth printer.
i have added "printing" extension build.yml. receive next errors when attempting phone call api...
js implementation: error when calling "rho.printer.searchprinters": typeerror: 'undefined' not object (evaluating 'rho.printer.searchprinters')
ruby implementation: when attempting phone call "rho::printer.searchprinters": receive "error: uninitialized constant rho::printer".
this project created using 2.2.0 , upgraded 4.1 recently. advice appreciated.
thanks! ryan
you can take @ rhodes test repository available on github. there's sample code testing printer apis can utilize understand need implement.
pay attending options used searchprintes method:
rho::printer.searchprinters({}, url_for(:action => :searchprinters_callback))
should useful seek utilize api in new v4.1 apps, check working , implement feature in application, porting rhodes v2.2 v4.1
android bluetooth rhomobile
No comments:
Post a Comment