title: How to change the get access location permission value based on time in iOS?
body: <p>I work in the Geofence feature using the <code>CoreLocation</code> library. The <code>CoreLocation</code> library has a <code>CoreLocationManager</code> class, which has the <code>requestAlwaysAuthorization()</code> permission function.</p>
  
  <p>I want to ask a question, can I change the permission based on time automatically after choosing the always allow? I want to avoid the battery drain. E.g. in peak time (10 AM -10 PM) the permission value will be always allowed and otherwise will be only while using the app</p>