cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Santana <csantan...@gmail.com>
Subject Re: [ios] cordova-plugin-geolocation ios8 permissions
Date Thu, 09 Apr 2015 13:23:42 GMT
+1 much better UX

On Wed, Apr 8, 2015 at 2:07 PM, Jesse <purplecabbage@gmail.com> wrote:

> +1
> Please file a bug in JIRA.
>
> @purplecabbage
> risingj.com
>
> On Wed, Apr 8, 2015 at 10:17 AM, Jason Peterson <jason@essenzasoftware.com
> >
> wrote:
>
> > Hello,
> >
> > If this is not the correct list to start this discussion, please let me
> > know.
> >
> > I would like to suggest a change to how the geolocation plugin requests
> > permissions in iOS8.  In the event that both iOS8 NSLocation usage
> > permissions exist, I suggest that we first request the least permissive
> one
> > (NSLocationWhenInUseUsageDescription).
> >
> > This should amount to simply reversing the logic in CDVLocation.m:
> >
> >         if([[NSBundle mainBundle]
> > objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"])
> > {
> >             [self.locationManager  requestWhenInUseAuthorization];
> >         } else if([[NSBundle mainBundle] objectForInfoDictionaryKey:@
> > "NSLocationAlwaysUsageDescription"]){
> >             [self.locationManager requestAlwaysAuthorization];
> >
> > I have a use case where an app launches with both descriptions set, but
> > depending on client configuration the AlwaysInUse may not be necessary.
> As
> > the logic is written now, the plugin will always request that one, which
> > could look a bit extreme to the end user.
> >
> > Thanks,
> >
> > Jason
> >
>



-- 
Carlos Santana
<csantana23@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message