This is a migrated thread and some comments may be shown as answers.

iPhone Print Dialog with Telerik Icenium mobile Ui

8 Answers 95 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nisarg
Top achievements
Rank 1
Nisarg asked on 11 Jun 2014, 07:22 AM
Hello,

I need some help to open print dialog using Telerik icenium Mobile Ui in iPhone, i want to open print dialog in my application this application has one html page which i want to print using AirPrint.

For that i am trying to import costume plugins by Apache cordova which is as per below link

(Cordova Print plugin)  or https://github.com/katzer/cordova-plugin-printer

But i having trouble to import this plugin to VS 2013 with my project.

Is any one help me out of  this mess.

Thanks,
Nisarg

8 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 16 Jun 2014, 07:07 AM
Hello Nisarg,

Thank you for contacting. Please, avoid posting multiple times on a similar matter, as this really makes our work harder and the responses slower. Also, please keep the posts only to the relative forum, as in this case you need help with Telerik AppBuilder and not with the Telerik UI for iOS. Thank you for the understanding.

Now, about the issue you are experiencing. I managed to import the Cordova printer plugin inside a Blank AppBuilder project, by simply copying it under the Plugins folder. Here is a more detailed workflow for the process. I have also attached my solution for your guidance. Note, the "Printer plugin initialized!!!" on the deviceReady event.

I hope this helps. Further, if this is not enough to get you in the right direction, I will be happy to assist you again. Please, share what the exact issue with the above plugin is. It will help me a lot if you can also provide a sample that reproduces the faulty behavior or even a complete project.

Regards,
Kaloyan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Nisarg
Top achievements
Rank 1
answered on 16 Jun 2014, 07:32 AM
Hi Kaloyan,

Thanks for quick reply , i appreciate your help that's really nice.

as you mention in the post that we will receive "Printer plugin initialized!!!" on the deviceReady event but we are testing in the iPad still we are not getting this message.

We just have cordova splash screen stuck nothing happen after that , will you please reply for the same .

thanks,
madhav






0
Nisarg
Top achievements
Rank 1
answered on 16 Jun 2014, 08:12 AM
Hi Kaloyan,

some more detail , as i told you we are stuck at the splash screen , we make some change in your code that's as per screen shot.
that's as per below code,

  try {
            if (window.plugin.printer) {
                alert("Printer plugin initialized!!!");
            } else {
                alert("Printer plugin not initialized!!!");
            }
             }
        catch (er) {
            alert(er.message);
        }

so, after putting Try and catch over the code we got the same error which we getting previously in our code.

same as our code in your code too, we are getting same error please find second attachment which is snip for the error in iPad.

please guide me for the same , that will be really appreciable.
 
Thanks 
Madhav.
0
Kaloyan
Telerik team
answered on 16 Jun 2014, 08:23 AM
Hi again Nisarg,

I tested the provided by you sample on iPad 3, running iOS 7.1 and it ran successfully. Please, let me know on what iPad version you are testing on. Also, what is the iOS version running on it.

Thank you for the help in advance.

Regards,
Kaloyan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Nisarg
Top achievements
Rank 1
answered on 16 Jun 2014, 10:08 AM
Hello again Kaloyan,

Thanks for quick Reply again,

We are testing the code in iPad 2, Model No.(MC773ZP / A).

so, is this depends on iPad versions and if yes then which kind of versions are supported could you please tell me.
please guide me for the same.

Thanks,
Madhav
0
Nisarg
Top achievements
Rank 1
answered on 18 Jun 2014, 05:28 AM
Hello Kaloyan again,

we are using iPad 2 for testing will you please tell us is it compatible or not please help us we are stuck at development this is really urgent for us please guide us.

If this tab is not compatible then please tell us iPad version which are supported print Plugin by cordova.

Please guide us its really really urgent for us , that will be really appreciable.
0
Nisarg
Top achievements
Rank 1
answered on 18 Jun 2014, 10:40 AM
Hello Kaloyan,

Please make some comment on my post its really urgent , as you told me in the first reply you will help me to short out this issue please make some review that will help me a lot.

Its really really urgent and we need to finish this topic by end of this week please guide us about this R&D is this only works with
iPad 3 or any other reason behind that code is not working with iPad 2.

Please make some comment , we already spent too much time to resolve this issues.. please guide us.

Thanks,
Madhav
0
Kaloyan
Telerik team
answered on 18 Jun 2014, 02:42 PM
Hello Nisarg,

I tested the provided by me project on iPad 1, iPad 2 and iPad 3. It worked as expected on all of the devices. So, I believe that should not be an issue.

Further, is there any chance that you are using the AppBuilder Companion App in order to deploy the application? If so, this is expected to fail as custom plugins are not supported there. You will need to Build in Cloud or Build and Deploy your app with appropriate provisioning iOS profile in order to test the plugin.

Please, let me know if this is the case, or there is something else that could be causing the issue and I will assist you again.

Regards,
Kaloyan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussion
Asked by
Nisarg
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Nisarg
Top achievements
Rank 1
Share this question
or