ios - How can i get this switch's status?(Setting->Privacy->Your App->Sports and fitness) -


enter image description here

now, can error code function...

typedef void (^cmpedometerhandler)(cmpedometerdata * __nullable pedometerdata, nserror * __nullable error) - (void)querypedometerdatafromdate:(nsdate *)start                             todate:(nsdate *)end                        withhandler:(cmpedometerhandler)handler;  error.code == 105 equal "not allow" 

i don't know how switch's status directly. if there api can directly switch's status? or did have other function solve problem. thanks!


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -