Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.


Matheus Monteiro Galvão de Castro wrote:

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.


Hi Matheus,


You need add the plugin url in Extensibility Configuration from your app.

e.g.:

{
    "plugin": {
        "url": "https://github.com/katzer/cordova-plugin-printer.git"
    }
}


for more detail: 

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins 

https://success.outsystems.com/Documentation/11/Delivering_Mobile_Apps/Customize_Your_Mobile_App/Extensibility_Configurations_JSON_Schema

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.

-Make Sure you added the plugin from Dependencies or Extensibility  Configuration

-If you already added plugin then make sure you are not testing it on browser, coz cordova plugin not support on browser

- If you are testing the same on device then make sure you generate & Installed a new build after u add the plugin


Pedro Costa wrote:

Matheus Monteiro Galvão de Castro wrote:

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.


Hi Matheus,


You need add the plugin url in Extensibility Configuration from your app.

e.g.:

{
    "plugin": {
        "url": "https://github.com/katzer/cordova-plugin-printer.git"
    }
}


for more detail: 

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins 

https://success.outsystems.com/Documentation/11/Delivering_Mobile_Apps/Customize_Your_Mobile_App/Extensibility_Configurations_JSON_Schema

Thanks for your attention.
But this setting is same as mine. It still doesn't work :( 

Solution

assif_tiger wrote:

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.

-Make Sure you added the plugin from Dependencies or Extensibility  Configuration

-If you already added plugin then make sure you are not testing it on browser, coz cordova plugin not support on browser

- If you are testing the same on device then make sure you generate & Installed a new build after u add the plugin


Thanks for you attention.

already checked all these requirements. But it still doesn't work :(


Solution

Hi Matheus,

See the attachment with an example. Also, you can install de forge component Printer Plugin

Attention: you need generate and Install a new build in a device. 


Thanks !


Matheus Monteiro Galvão de Castro wrote:

assif_tiger wrote:

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.

-Make Sure you added the plugin from Dependencies or Extensibility  Configuration

-If you already added plugin then make sure you are not testing it on browser, coz cordova plugin not support on browser

- If you are testing the same on device then make sure you generate & Installed a new build after u add the plugin


Thanks for you attention.

already checked all these requirements. But it still doesn't work :(


Thank you. I got fix the problem. It was necessary to uninstall and reinstall the application. Just as you recommended.


Matheus Monteiro Galvão de Castro wrote:

assif_tiger wrote:

Matheus Monteiro Galvão de Castro wrote:

Hi,

I'm having a problem in app mobile that appear look like this: "cannot read property 'print' of undefined".

It's an action of printing the current screen.

Please, someone help me.

-Make Sure you added the plugin from Dependencies or Extensibility  Configuration

-If you already added plugin then make sure you are not testing it on browser, coz cordova plugin not support on browser

- If you are testing the same on device then make sure you generate & Installed a new build after u add the plugin


Thanks for you attention.

already checked all these requirements. But it still doesn't work :(


Hello Matheus.

You should recognize the effort other made to aid you and not mark your own answer as correct.