iOS App build Rejected :- Location Permission modal alert description










-3















enter image description hereThis dialogue shows up when the location is turned off in device. My App got rejected because of this dialogue does not contain any description on why app requires the location.



I have added all keys in info.plist regarding location usage description.But it doesn't take up the description. This dialogue is not handled by our app and don't know from where it is showing up.



Please guys any help is welcome on why the description does not show up here.? Thanks in advance



enter image description here










share|improve this question
























  • It's simply IN THE PLIST. they are NOT talking about the description in that alert box.

    – Fattie
    Nov 15 '18 at 7:32






  • 1





    If even you don't know how the dialogue is handled, how are we suppose to know and help?

    – Desdenova
    Nov 15 '18 at 7:37











  • You need to identify where the dialog is coming from; Check any 3rd party frameworks/modules you are using.

    – Paulw11
    Nov 15 '18 at 8:01











  • @Desdenova this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19











  • @Paulw11 this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19















-3















enter image description hereThis dialogue shows up when the location is turned off in device. My App got rejected because of this dialogue does not contain any description on why app requires the location.



I have added all keys in info.plist regarding location usage description.But it doesn't take up the description. This dialogue is not handled by our app and don't know from where it is showing up.



Please guys any help is welcome on why the description does not show up here.? Thanks in advance



enter image description here










share|improve this question
























  • It's simply IN THE PLIST. they are NOT talking about the description in that alert box.

    – Fattie
    Nov 15 '18 at 7:32






  • 1





    If even you don't know how the dialogue is handled, how are we suppose to know and help?

    – Desdenova
    Nov 15 '18 at 7:37











  • You need to identify where the dialog is coming from; Check any 3rd party frameworks/modules you are using.

    – Paulw11
    Nov 15 '18 at 8:01











  • @Desdenova this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19











  • @Paulw11 this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19













-3












-3








-3








enter image description hereThis dialogue shows up when the location is turned off in device. My App got rejected because of this dialogue does not contain any description on why app requires the location.



I have added all keys in info.plist regarding location usage description.But it doesn't take up the description. This dialogue is not handled by our app and don't know from where it is showing up.



Please guys any help is welcome on why the description does not show up here.? Thanks in advance



enter image description here










share|improve this question
















enter image description hereThis dialogue shows up when the location is turned off in device. My App got rejected because of this dialogue does not contain any description on why app requires the location.



I have added all keys in info.plist regarding location usage description.But it doesn't take up the description. This dialogue is not handled by our app and don't know from where it is showing up.



Please guys any help is welcome on why the description does not show up here.? Thanks in advance



enter image description here







ios swift core-location






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 7:38







Rakesh

















asked Nov 15 '18 at 7:25









RakeshRakesh

378




378












  • It's simply IN THE PLIST. they are NOT talking about the description in that alert box.

    – Fattie
    Nov 15 '18 at 7:32






  • 1





    If even you don't know how the dialogue is handled, how are we suppose to know and help?

    – Desdenova
    Nov 15 '18 at 7:37











  • You need to identify where the dialog is coming from; Check any 3rd party frameworks/modules you are using.

    – Paulw11
    Nov 15 '18 at 8:01











  • @Desdenova this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19











  • @Paulw11 this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19

















  • It's simply IN THE PLIST. they are NOT talking about the description in that alert box.

    – Fattie
    Nov 15 '18 at 7:32






  • 1





    If even you don't know how the dialogue is handled, how are we suppose to know and help?

    – Desdenova
    Nov 15 '18 at 7:37











  • You need to identify where the dialog is coming from; Check any 3rd party frameworks/modules you are using.

    – Paulw11
    Nov 15 '18 at 8:01











  • @Desdenova this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19











  • @Paulw11 this shows only when the location is disabled in device settings or else the alert shows up correctly

    – Rakesh
    Nov 15 '18 at 9:19
















It's simply IN THE PLIST. they are NOT talking about the description in that alert box.

– Fattie
Nov 15 '18 at 7:32





It's simply IN THE PLIST. they are NOT talking about the description in that alert box.

– Fattie
Nov 15 '18 at 7:32




1




1





If even you don't know how the dialogue is handled, how are we suppose to know and help?

– Desdenova
Nov 15 '18 at 7:37





If even you don't know how the dialogue is handled, how are we suppose to know and help?

– Desdenova
Nov 15 '18 at 7:37













You need to identify where the dialog is coming from; Check any 3rd party frameworks/modules you are using.

– Paulw11
Nov 15 '18 at 8:01





You need to identify where the dialog is coming from; Check any 3rd party frameworks/modules you are using.

– Paulw11
Nov 15 '18 at 8:01













@Desdenova this shows only when the location is disabled in device settings or else the alert shows up correctly

– Rakesh
Nov 15 '18 at 9:19





@Desdenova this shows only when the location is disabled in device settings or else the alert shows up correctly

– Rakesh
Nov 15 '18 at 9:19













@Paulw11 this shows only when the location is disabled in device settings or else the alert shows up correctly

– Rakesh
Nov 15 '18 at 9:19





@Paulw11 this shows only when the location is disabled in device settings or else the alert shows up correctly

– Rakesh
Nov 15 '18 at 9:19












3 Answers
3






active

oldest

votes


















2














It is an iOS dialog (and a fairly awful one at that; All of the words shouldn't be capitalised).



I would suggest that you appeal your rejection and explain that it is an iOS dialog that you have no control over;



If location services are disabled, Apple Maps shows exactly the same dialog






share|improve this answer

























  • Thanks for the help @Paulw11

    – Rakesh
    Nov 15 '18 at 9:37


















0














Add this description with these keys



<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Description.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Description.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Description.</string>


Apple had mad many changes in permission. If you are asking for NSLocationAlwaysUsageDescription. You still need to give a description for NSLocationWhenInUseUsageDescription.






share|improve this answer























  • I have added the keys already but also I doesn't show up

    – Rakesh
    Nov 15 '18 at 7:34











  • show us your info.plist file

    – rv7284
    Nov 15 '18 at 7:35











  • I have attached the screen shot of info.plist

    – Rakesh
    Nov 15 '18 at 7:38











  • Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

    – rv7284
    Nov 15 '18 at 7:43











  • This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

    – Rakesh
    Nov 15 '18 at 9:06


















0














This also happened for our app few days back wherein our app was rejected for the similar reasons that you mentioned. The message cannot be a generic one. So you can show a custom screen of yours where you can mention for what exact reasons you need the Location permissions and then show this pop up.



<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>


Edit:



Somewhere in your app you might be using this custom messaging with an alert controller



UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:**your custom message** preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *allowAction = [UIAlertAction actionWithTitle:@"Settings" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
for (void(^ completion)(NSNumber * __nonnull status) in self.callbacks)
completion(@(kCLAuthorizationStatusDenied));

];
[alertController addAction:cancelAction];
[alertController addAction:allowAction];

[someViewController presentViewController:alertController animated:animated completion:nil];





share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314322%2fios-app-build-rejected-location-permission-modal-alert-description%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    It is an iOS dialog (and a fairly awful one at that; All of the words shouldn't be capitalised).



    I would suggest that you appeal your rejection and explain that it is an iOS dialog that you have no control over;



    If location services are disabled, Apple Maps shows exactly the same dialog






    share|improve this answer

























    • Thanks for the help @Paulw11

      – Rakesh
      Nov 15 '18 at 9:37















    2














    It is an iOS dialog (and a fairly awful one at that; All of the words shouldn't be capitalised).



    I would suggest that you appeal your rejection and explain that it is an iOS dialog that you have no control over;



    If location services are disabled, Apple Maps shows exactly the same dialog






    share|improve this answer

























    • Thanks for the help @Paulw11

      – Rakesh
      Nov 15 '18 at 9:37













    2












    2








    2







    It is an iOS dialog (and a fairly awful one at that; All of the words shouldn't be capitalised).



    I would suggest that you appeal your rejection and explain that it is an iOS dialog that you have no control over;



    If location services are disabled, Apple Maps shows exactly the same dialog






    share|improve this answer















    It is an iOS dialog (and a fairly awful one at that; All of the words shouldn't be capitalised).



    I would suggest that you appeal your rejection and explain that it is an iOS dialog that you have no control over;



    If location services are disabled, Apple Maps shows exactly the same dialog







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 15 '18 at 9:38

























    answered Nov 15 '18 at 9:33









    Paulw11Paulw11

    68.9k1087104




    68.9k1087104












    • Thanks for the help @Paulw11

      – Rakesh
      Nov 15 '18 at 9:37

















    • Thanks for the help @Paulw11

      – Rakesh
      Nov 15 '18 at 9:37
















    Thanks for the help @Paulw11

    – Rakesh
    Nov 15 '18 at 9:37





    Thanks for the help @Paulw11

    – Rakesh
    Nov 15 '18 at 9:37













    0














    Add this description with these keys



    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Description.</string>


    Apple had mad many changes in permission. If you are asking for NSLocationAlwaysUsageDescription. You still need to give a description for NSLocationWhenInUseUsageDescription.






    share|improve this answer























    • I have added the keys already but also I doesn't show up

      – Rakesh
      Nov 15 '18 at 7:34











    • show us your info.plist file

      – rv7284
      Nov 15 '18 at 7:35











    • I have attached the screen shot of info.plist

      – Rakesh
      Nov 15 '18 at 7:38











    • Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

      – rv7284
      Nov 15 '18 at 7:43











    • This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

      – Rakesh
      Nov 15 '18 at 9:06















    0














    Add this description with these keys



    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Description.</string>


    Apple had mad many changes in permission. If you are asking for NSLocationAlwaysUsageDescription. You still need to give a description for NSLocationWhenInUseUsageDescription.






    share|improve this answer























    • I have added the keys already but also I doesn't show up

      – Rakesh
      Nov 15 '18 at 7:34











    • show us your info.plist file

      – rv7284
      Nov 15 '18 at 7:35











    • I have attached the screen shot of info.plist

      – Rakesh
      Nov 15 '18 at 7:38











    • Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

      – rv7284
      Nov 15 '18 at 7:43











    • This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

      – Rakesh
      Nov 15 '18 at 9:06













    0












    0








    0







    Add this description with these keys



    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Description.</string>


    Apple had mad many changes in permission. If you are asking for NSLocationAlwaysUsageDescription. You still need to give a description for NSLocationWhenInUseUsageDescription.






    share|improve this answer













    Add this description with these keys



    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Description.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Description.</string>


    Apple had mad many changes in permission. If you are asking for NSLocationAlwaysUsageDescription. You still need to give a description for NSLocationWhenInUseUsageDescription.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 15 '18 at 7:31









    rv7284rv7284

    782720




    782720












    • I have added the keys already but also I doesn't show up

      – Rakesh
      Nov 15 '18 at 7:34











    • show us your info.plist file

      – rv7284
      Nov 15 '18 at 7:35











    • I have attached the screen shot of info.plist

      – Rakesh
      Nov 15 '18 at 7:38











    • Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

      – rv7284
      Nov 15 '18 at 7:43











    • This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

      – Rakesh
      Nov 15 '18 at 9:06

















    • I have added the keys already but also I doesn't show up

      – Rakesh
      Nov 15 '18 at 7:34











    • show us your info.plist file

      – rv7284
      Nov 15 '18 at 7:35











    • I have attached the screen shot of info.plist

      – Rakesh
      Nov 15 '18 at 7:38











    • Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

      – rv7284
      Nov 15 '18 at 7:43











    • This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

      – Rakesh
      Nov 15 '18 at 9:06
















    I have added the keys already but also I doesn't show up

    – Rakesh
    Nov 15 '18 at 7:34





    I have added the keys already but also I doesn't show up

    – Rakesh
    Nov 15 '18 at 7:34













    show us your info.plist file

    – rv7284
    Nov 15 '18 at 7:35





    show us your info.plist file

    – rv7284
    Nov 15 '18 at 7:35













    I have attached the screen shot of info.plist

    – Rakesh
    Nov 15 '18 at 7:38





    I have attached the screen shot of info.plist

    – Rakesh
    Nov 15 '18 at 7:38













    Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

    – rv7284
    Nov 15 '18 at 7:43





    Your info.plist file seems okay. But the alert is from your application. This is not the alert apple ask for the first time.

    – rv7284
    Nov 15 '18 at 7:43













    This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

    – Rakesh
    Nov 15 '18 at 9:06





    This happens only when the location is turned off in device settings. Otherwise the dialogue shows up correctly

    – Rakesh
    Nov 15 '18 at 9:06











    0














    This also happened for our app few days back wherein our app was rejected for the similar reasons that you mentioned. The message cannot be a generic one. So you can show a custom screen of yours where you can mention for what exact reasons you need the Location permissions and then show this pop up.



    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>


    Edit:



    Somewhere in your app you might be using this custom messaging with an alert controller



    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:**your custom message** preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *allowAction = [UIAlertAction actionWithTitle:@"Settings" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
    ];
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
    for (void(^ completion)(NSNumber * __nonnull status) in self.callbacks)
    completion(@(kCLAuthorizationStatusDenied));

    ];
    [alertController addAction:cancelAction];
    [alertController addAction:allowAction];

    [someViewController presentViewController:alertController animated:animated completion:nil];





    share|improve this answer





























      0














      This also happened for our app few days back wherein our app was rejected for the similar reasons that you mentioned. The message cannot be a generic one. So you can show a custom screen of yours where you can mention for what exact reasons you need the Location permissions and then show this pop up.



      <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
      <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
      <key>NSLocationAlwaysUsageDescription</key>
      <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
      <key>NSLocationWhenInUseUsageDescription</key>
      <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>


      Edit:



      Somewhere in your app you might be using this custom messaging with an alert controller



      UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:**your custom message** preferredStyle:UIAlertControllerStyleAlert];
      UIAlertAction *allowAction = [UIAlertAction actionWithTitle:@"Settings" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
      ];
      UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
      for (void(^ completion)(NSNumber * __nonnull status) in self.callbacks)
      completion(@(kCLAuthorizationStatusDenied));

      ];
      [alertController addAction:cancelAction];
      [alertController addAction:allowAction];

      [someViewController presentViewController:alertController animated:animated completion:nil];





      share|improve this answer



























        0












        0








        0







        This also happened for our app few days back wherein our app was rejected for the similar reasons that you mentioned. The message cannot be a generic one. So you can show a custom screen of yours where you can mention for what exact reasons you need the Location permissions and then show this pop up.



        <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
        <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
        <key>NSLocationAlwaysUsageDescription</key>
        <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
        <key>NSLocationWhenInUseUsageDescription</key>
        <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>


        Edit:



        Somewhere in your app you might be using this custom messaging with an alert controller



        UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:**your custom message** preferredStyle:UIAlertControllerStyleAlert];
        UIAlertAction *allowAction = [UIAlertAction actionWithTitle:@"Settings" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
        ];
        UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
        for (void(^ completion)(NSNumber * __nonnull status) in self.callbacks)
        completion(@(kCLAuthorizationStatusDenied));

        ];
        [alertController addAction:cancelAction];
        [alertController addAction:allowAction];

        [someViewController presentViewController:alertController animated:animated completion:nil];





        share|improve this answer















        This also happened for our app few days back wherein our app was rejected for the similar reasons that you mentioned. The message cannot be a generic one. So you can show a custom screen of yours where you can mention for what exact reasons you need the Location permissions and then show this pop up.



        <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
        <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
        <key>NSLocationAlwaysUsageDescription</key>
        <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>
        <key>NSLocationWhenInUseUsageDescription</key>
        <string>MyApp uses your location to provide the list of products serviceable at your location and for better recommendation</string>


        Edit:



        Somewhere in your app you might be using this custom messaging with an alert controller



        UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:**your custom message** preferredStyle:UIAlertControllerStyleAlert];
        UIAlertAction *allowAction = [UIAlertAction actionWithTitle:@"Settings" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
        ];
        UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action)
        for (void(^ completion)(NSNumber * __nonnull status) in self.callbacks)
        completion(@(kCLAuthorizationStatusDenied));

        ];
        [alertController addAction:cancelAction];
        [alertController addAction:allowAction];

        [someViewController presentViewController:alertController animated:animated completion:nil];






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 15 '18 at 8:18

























        answered Nov 15 '18 at 7:35









        cool_jbcool_jb

        345




        345



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314322%2fios-app-build-rejected-location-permission-modal-alert-description%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Top Tejano songwriter Luis Silva dead of heart attack at 64

            政党

            天津地下鉄3号線