How to do print currnt page when click on Print button.
yes i have downloaded plugin from this link.
and added to my project in apprey.io as per documentation provided in apprey.io.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
yes i have downloaded plugin from this link.
and added to my project in apprey.io as per documentation provided in apprey.io.
In plugin description there is a section "Using the plugin" - follow instruction to invoke plugin.
HI,
I have used that code in button click.after i export my project into xcode project.
but there is no plugin in project foder structure. print functionality is not woking.
Appery.io doesn't have any special print features. You should use any standard browser APIs available for printing or see if there is a PhoneGap plugin.
ya i have verified phonegap plugin.it is also like cardova plugin.
Just let me know one thing after added 3rd party plugin.that plugin color will be in black color or blue color.
I have added phonegap plugin also in apprey.io
When i exported into xcode project it is not presented in project folder.
Hi Navya,
Files and folders added and changed manually will be highlighted with blue. They must be. Where did you add them, in what folder? Where did you search for them?
In source-select IOS-first folder with project name-cordovalibplugins-click on settings button-upload to this folder-select zip bundle-drop there downloaded zip file.
after that click on save to test in device click on export-select xcode project-savefile-unzip the folder-open project.
There is no added plungins.
If i add manually to this project it does not work.
Anything need to do in terminal(command prompt in windows) to work with it?
Hello!
1) "Anything need to do in terminal(command prompt in windows) to work with it?" - no
2) "There is no added plungins." - did you that files are added in builder on Source tab (blue colored files)
Could you post screenshot so we can see what you have in builder on Source tab and screenshot of project source files content (where should be added folder with plugin, but it's not)?
Hi Maryna,
I am also using same plugin for printing from Android phone.
I have added the plugin in my appery project using the instructions on your website.
On the plugin git site they have given following code to invoke printing on the page
code
// Get HTML string
var page = document.body.innerHTML;
// Pass the HTML
window.plugin.printer.print(page);
/code
I have written this code as JS on the click of a button, but when i click on the button, nothing happens.
Pls help!!
Or if you have any other way to print from android app pls let me know.
Hello,
Could you check logcat logs to see if there any errors when you are trying execute this code?
http://developer.android.com/tools/he...