Giter Club home page Giter Club logo

Comments (9)

aniljailta avatar aniljailta commented on June 7, 2024

Even i am getting same issue there. My app gets stopped when i call cordova print. Did you get any solution for it?

from cordova-plugin-printer.

alexander-schranz avatar alexander-schranz commented on June 7, 2024

No, I still wait for some support here :).

from cordova-plugin-printer.

katzer avatar katzer commented on June 7, 2024

which branch/version?

from cordova-plugin-printer.

aniljailta avatar aniljailta commented on June 7, 2024

Branch is master Branch for Android >= 4.4 (>= v0.7.x). Testing it on android 4.4.4.
cordova version 3.5.0

code is

   cordova.plugins.printer.isAvailable(
    function (isAvailable) {     
      if(isAvailable){
       var page = location.href;
       cordova.plugins.printer.print(page, 'Document.html', function () {
         alert('printing finished or canceled')
       });
      }
    }
  );

from cordova-plugin-printer.

katzer avatar katzer commented on June 7, 2024

can't reproduce - but I am not using Intel XDK!
Do you have any logs about the error?

from cordova-plugin-printer.

aniljailta avatar aniljailta commented on June 7, 2024

well i don't have any logs . I am unable to track them . I tried to do remote debugging but console also get closed when app crash.

  cordova.plugins.printer.isAvailable(
   function (isAvailable,installedAppIds) {
 //show me alert
    alert(isAvailable ? 'Service is available' : 'Service NOT available');
    console.log(installedAppIds);  
 //installedAppIds is undefined. Does it work in new master branch.?

 //get crashed here.  
    plugin.printer.print('content', { appId: 'com.zebra.android.zebrautilities' });   
//Here i am trying to print using zebra utilities. 
  }
 );

cordova.plugins.printer.print(page, 'Document.html', function () {
alert('printing finished or canceled')
});

Tried this but same thing. crashed again.

I am testing things in kitkat version 4.4.4. Kindly help me here. I am not able to get any solution regarding this.

from cordova-plugin-printer.

alexander-schranz avatar alexander-schranz commented on June 7, 2024

@katzer sorry for my late response only got today some time to test.
@aniljailta there are some crash log reader in android store.

Back to topic. For me it did fix the crash when I directly use this GIT REPO instead of select the checkbox that the Plugin is in Apache Cordova Plugins Registry (maybe the version there of the plugin is deprecated). For me it did also work with Cordova 3.5 in Intel XDK.

@katzer is there any plans to support >=4.4 and <=4.3 in one branch?

from cordova-plugin-printer.

katzer avatar katzer commented on June 7, 2024

is there any plans to support >=4.4 and <=4.3 in one branch?

Yes -if possible- with 0.8

from cordova-plugin-printer.

marcelodelta avatar marcelodelta commented on June 7, 2024

I am also having the same problem.

from cordova-plugin-printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.