How to detect plugins cordova?

As said, I need to detect whether or not the person authorizing the use of the camera or the geolocation on your mobile device. I’m working with ionic framework. Also cordova plugins

I don’t fully understand your question, but here is an example of a service to get an image off their device.

In what I meant was whether there is any way to detect if the user authorize or not, for example, the use of GPS application or Camara