Restrict device options such as uninstall,gps and flight mode

I am developing an android app to track user location.
Is it possible to restrict the following things in ionic framework.

  • To restrict user from uninstalling the app, should proceed only after password.
  • Should not allow the user to disable gps or internet.
  • Should not allow the user to switch to flight mode.

I hope this is not possible. I would absolutely hate an app that did something like that.

1 Like

Thanks for reply.
:slight_smile: May be you hate, but that’s the requirement.
As It has to function as tracking device.

Hi samsaran,

Did you get anything… I am also having the same requirements.

I wholeheartedly agree with @Sujan12 here that this is a completely terrible idea. In order to try to say something remotely constructive, I will note that Ionic, which is primarily a UI toolkit, is operating at a much higher level than the functionality needed to do this, so there would not be anything Ionic-specific that would be useful to anybody going down this horrendous road. I think you would have to effectively write and enforce installation of your own OS in order to achieve something with such requirements.