How to add kiosk mode in Ionic 3 apps?

I am developing an app for which I want to restrict user from getting access to any other app. Is there any way to create such app with ionic for both android and ios?
The app on pressing the exit button will terminate the kiosk mode after verifying a pin.

Thanks in advance.

There is a Cordova plugin for Android. I don’t know about iOS.