[Question] Where should I put ExitOnBack plugin?

[Question] Where should I put ExitOnBack plugin?

  

I want to use ExitOnBack plugin but I can't get it works. 

Can someone help me where should I put it? 

Thanks

Hello Karel.

What do you mean by "where should I put it"?
It's always better to ask a question about a plugin/forge component directly into the component Support tab, as the maintainers will be notified of the question.

Cheers.

Hi Eduardo,

thanks for replying.
I'm kinda new to this forum. I want to use the plugin but i don't know where should I put it.
It either in Screen or Layout. 

Thanks.

Hi,

If you put in layout, all screens based on this layout will have it automatically.

If you put in a screen, only that screen will have it.

This helps?

Cheers

Hi,

I tried to do the same thing but it telling me to reload the page.
can go through the screen. 

If I put it on a screen, where should I put it exactly?

Thanks.

Hello Karel,

This plugin uses Cordova. You can't test it in Chrome.

But you can test it in OutSystems Now (device), or install the app in device and test it.
It works with the web block put in layout or in page. If you need to pass different configurations or react to the events, than you have to put it in screen, or adapt the layout to take this into consideration.

Cheers.

Hi Eduardo, 

thankyou so much. It works now but it still can't exit the application.

Maybe I need to try the android back button plug in. 

Thanks

Hello Karel,

What happens when you click the back button?

Cheers.

Hi Eduardo, 

Sorry for the late reply. It does nothing. It still going back to the login screen. 

Can you help me?

Thanks.

Hello,

Could you send a small module reproducing the problem, with the steps you're taking to test (where are you testing, etc)?

I'm not able to reproduce it this side.

Cheers

Hi, 

I guess I can figure it out by myself. It works when I tried using Android back button.
Thanks for your time tho. 

Cheers,

Karel.