iPhone Print Dialog with Telerik Icenium mobile Ui

9 posts, 0 answers
  1. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 11 Jun 2014 Link to this post

    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
  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 16 Jun 2014 Link to this post

    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.

     
  3. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 16 Jun 2014 in reply to Kaloyan Link to this post

    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






  4. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 16 Jun 2014 in reply to Kaloyan Link to this post

    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.
  5. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 16 Jun 2014 Link to this post

    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.

     
  6. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 16 Jun 2014 in reply to Kaloyan Link to this post

    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
  7. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 18 Jun 2014 in reply to Kaloyan Link to this post

    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.
  8. Nisarg
    Nisarg avatar
    25 posts
    Member since:
    Dec 2011

    Posted 18 Jun 2014 in reply to Kaloyan Link to this post

    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
  9. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 18 Jun 2014 Link to this post

    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.

     
Back to Top