Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 我有问题的离子原生插件打印离子4_Ionic Framework_Printing_Native_Ionic Native - Fatal编程技术网

Ionic framework 我有问题的离子原生插件打印离子4

Ionic framework 我有问题的离子原生插件打印离子4,ionic-framework,printing,native,ionic-native,Ionic Framework,Printing,Native,Ionic Native,当我在安卓设备上运行时,我对这段代码有一个问题,我也有同样的问题 TypeError: Printer.getPlugin(...).check is not a function at vendor.js:79303 at vendor.js:78443 at new ZoneAwarePromise (polyfills.js:3272) at tryNativePromise (vendor.js:78442) at getPromise (vend

当我在安卓设备上运行时,我对这段代码有一个问题,我也有同样的问题

TypeError: Printer.getPlugin(...).check is not a function
    at vendor.js:79303
    at vendor.js:78443
    at new ZoneAwarePromise (polyfills.js:3272)
    at tryNativePromise (vendor.js:78442)
    at getPromise (vendor.js:78463)
    at vendor.js:79301
    at Printer.push../node_modules/@ionic-native/printer/ngx/index.js.Printer.check (vendor.js:79308)
    at Printer.push../node_modules/@ionic-native/printer/ngx/index.js.Printer.isAvailable (vendor.js:79294)
    at SaleInfoPage.push../src/app/paenter code herege/sale-info/sale-info.page.ts.SaleInfoPage.print (main.js:1037)
    at Object.eval [as handleEvent] (SaleInfoPage.html:54)
离子信息

离子型:

Ionic CLI:5.2.1(/usr/local/lib/node\u模块/Ionic) 离子骨架:@Ionic/angular 4.6.0 @角度开发套件/构建角度:0.13.9 @角度devkit/示意图:7.3.9 @角度/cli:7.3.9 @离子/角度工具包:1.5.1

科尔多瓦:

Cordova CLI:8.0.0 Cordova平台:安卓8.0.0、ios 4.5.5 Cordova插件:Cordova插件ionic键盘2.1.3、Cordova插件ionic webview 4.1.1(和9个其他插件)

实用程序:

cordova res:0.5.0(可用更新:0.5.2) 本机运行:0.2.6(可用更新:0.2.7)

系统:

Android SDK工具:26.1.1(/Users/shahab/Library/Android/SDK/) ios部署:2.0.0 NodeJS:v8.11.3(/usr/local/bin/node) 净现值:5.6.0 OS:macOS Mojave Xcode:Xcode 10.2.1构建版本10E

函数中的代码

print()
  {
    this.printer.isAvailable().then(function(){
      this.printer.print("https://www.techiediaries.com").then(function(){
            alert("printing done successfully !");
          },function(){
            alert("Error while printing !");
          });
    }, function(e){
        console.log(e);
        alert('Error : printing is unavailable on your device ');
    });
  }

我用相同的库安装了这个插件,解决了我的问题

共享您的代码。我添加了爱奥尼亚信息,请参阅itTry删除平台并再次添加。我尝试了很多次,但都有相同的问题