How can I limit the use of a web application so that apanas can be used by Chrome?

0

My application is based on Java and made in Genexus.

I want it to be impossible to use my application outside Google Chrome.

Can you implement this limitation?

I did not find this specific content in my searches, I would like the help of the community.

Thank you!

    
asked by anonymous 01.12.2016 / 14:05

2 answers

1

Tayrone,

There is a function that is BrowserID to identify the browser. With this, in the "entry point" of your application could identify the browser and if it is not Chrome give a message and not run the application. More information about the function: link

Gustavo

    
01.12.2016 / 14:17
1

You can do it using the BrowserID as Gustavo suggested. But if you want to make this limitation to avoid unexpected bugs for lack of support for one or more features, I recommend using a library like modernizr ( link ). Limiting an application to work only in a browser is not wrong, just inadvisable.

    
01.12.2016 / 14:32