How can we notifiy user to share your location?

I want to check GPS is on/off and redirect user to settings page . Is it possible in ionic framework?