iOS : Google Maps API failing when applying API KEY restrictions











up vote
0
down vote

favorite












When I use Google API key without any API key restrictions, Google Maps loads just fine in the app. As soon as I apply restrictions such as:




  • Application Restriction : iOS app : Accept requests from an iOS
    application with one of these bundle identifiers

  • API Restrictions by service


The app rashes medially on maps access.



enter image description here



enter image description here










share|improve this question















This question has an open bounty worth +200
reputation from tamsler ending in 10 hours.


Looking for an answer drawing from credible and/or official sources.
















  • did you check enabling billing and what is your bundle identifier to call google maps API? developers.google.com/maps/documentation/ios-sdk/get-api-key
    – John
    Nov 5 at 23:51










  • @tamsler Can u share piece of source that is creating crash? I guess i can help you.
    – iOS_Developer
    Nov 7 at 12:07












  • Please edit to add meaningful code and a problem description here. Posting a Minimal, Complete, Verifiable Example that demonstrates your problem would help you get better answers. Thanks!
    – lucascaro
    Nov 8 at 22:21















up vote
0
down vote

favorite












When I use Google API key without any API key restrictions, Google Maps loads just fine in the app. As soon as I apply restrictions such as:




  • Application Restriction : iOS app : Accept requests from an iOS
    application with one of these bundle identifiers

  • API Restrictions by service


The app rashes medially on maps access.



enter image description here



enter image description here










share|improve this question















This question has an open bounty worth +200
reputation from tamsler ending in 10 hours.


Looking for an answer drawing from credible and/or official sources.
















  • did you check enabling billing and what is your bundle identifier to call google maps API? developers.google.com/maps/documentation/ios-sdk/get-api-key
    – John
    Nov 5 at 23:51










  • @tamsler Can u share piece of source that is creating crash? I guess i can help you.
    – iOS_Developer
    Nov 7 at 12:07












  • Please edit to add meaningful code and a problem description here. Posting a Minimal, Complete, Verifiable Example that demonstrates your problem would help you get better answers. Thanks!
    – lucascaro
    Nov 8 at 22:21













up vote
0
down vote

favorite









up vote
0
down vote

favorite











When I use Google API key without any API key restrictions, Google Maps loads just fine in the app. As soon as I apply restrictions such as:




  • Application Restriction : iOS app : Accept requests from an iOS
    application with one of these bundle identifiers

  • API Restrictions by service


The app rashes medially on maps access.



enter image description here



enter image description here










share|improve this question













When I use Google API key without any API key restrictions, Google Maps loads just fine in the app. As soon as I apply restrictions such as:




  • Application Restriction : iOS app : Accept requests from an iOS
    application with one of these bundle identifiers

  • API Restrictions by service


The app rashes medially on maps access.



enter image description here



enter image description here







ios google-maps api-key






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 1 at 21:14









tamsler

1,43311523




1,43311523






This question has an open bounty worth +200
reputation from tamsler ending in 10 hours.


Looking for an answer drawing from credible and/or official sources.








This question has an open bounty worth +200
reputation from tamsler ending in 10 hours.


Looking for an answer drawing from credible and/or official sources.














  • did you check enabling billing and what is your bundle identifier to call google maps API? developers.google.com/maps/documentation/ios-sdk/get-api-key
    – John
    Nov 5 at 23:51










  • @tamsler Can u share piece of source that is creating crash? I guess i can help you.
    – iOS_Developer
    Nov 7 at 12:07












  • Please edit to add meaningful code and a problem description here. Posting a Minimal, Complete, Verifiable Example that demonstrates your problem would help you get better answers. Thanks!
    – lucascaro
    Nov 8 at 22:21


















  • did you check enabling billing and what is your bundle identifier to call google maps API? developers.google.com/maps/documentation/ios-sdk/get-api-key
    – John
    Nov 5 at 23:51










  • @tamsler Can u share piece of source that is creating crash? I guess i can help you.
    – iOS_Developer
    Nov 7 at 12:07












  • Please edit to add meaningful code and a problem description here. Posting a Minimal, Complete, Verifiable Example that demonstrates your problem would help you get better answers. Thanks!
    – lucascaro
    Nov 8 at 22:21
















did you check enabling billing and what is your bundle identifier to call google maps API? developers.google.com/maps/documentation/ios-sdk/get-api-key
– John
Nov 5 at 23:51




did you check enabling billing and what is your bundle identifier to call google maps API? developers.google.com/maps/documentation/ios-sdk/get-api-key
– John
Nov 5 at 23:51












@tamsler Can u share piece of source that is creating crash? I guess i can help you.
– iOS_Developer
Nov 7 at 12:07






@tamsler Can u share piece of source that is creating crash? I guess i can help you.
– iOS_Developer
Nov 7 at 12:07














Please edit to add meaningful code and a problem description here. Posting a Minimal, Complete, Verifiable Example that demonstrates your problem would help you get better answers. Thanks!
– lucascaro
Nov 8 at 22:21




Please edit to add meaningful code and a problem description here. Posting a Minimal, Complete, Verifiable Example that demonstrates your problem would help you get better answers. Thanks!
– lucascaro
Nov 8 at 22:21












2 Answers
2






active

oldest

votes

















up vote
0
down vote













I have created an working example with snapshots. I just followed the the Google Maps tutorial. It did not crashed for me with or without restrictions for ios app.



google maps working example added



Location Manager added



Location Updates handled



Network Reachability Added



Hope it helps.






share|improve this answer





















  • @tamsler check out the Answer
    – iOS_Developer
    Nov 8 at 9:18


















up vote
0
down vote













SIGABRT (Signal abort) means there should be something to signal but it's aborted some how. Usually it tells you why its crashing.




  • So first Check the console for description:


[Console[1]




  • If there is nothing printed, Try simulator instead of real device.
    Its much more powerful than real device for debugging purposes.

  • Make sure you are in the debugging configuration:


[Edit scheme[2]
- You can turn on memory management options in diagnostics for better results if you doesn't find the issue: (Specially Zombie Objects)



[diagnostics[3]




  • Also you can try add some exception breakpoint to catch the issue before it going happen:


[exception breakpoint[4]



I think one of the above should lead you to something more specific about the issue and it's reason. Then you can absolutely handle it.






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',
    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%2f53109434%2fios-google-maps-api-failing-when-applying-api-key-restrictions%23new-answer', 'question_page');
    }
    );

    Post as a guest
































    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I have created an working example with snapshots. I just followed the the Google Maps tutorial. It did not crashed for me with or without restrictions for ios app.



    google maps working example added



    Location Manager added



    Location Updates handled



    Network Reachability Added



    Hope it helps.






    share|improve this answer





















    • @tamsler check out the Answer
      – iOS_Developer
      Nov 8 at 9:18















    up vote
    0
    down vote













    I have created an working example with snapshots. I just followed the the Google Maps tutorial. It did not crashed for me with or without restrictions for ios app.



    google maps working example added



    Location Manager added



    Location Updates handled



    Network Reachability Added



    Hope it helps.






    share|improve this answer





















    • @tamsler check out the Answer
      – iOS_Developer
      Nov 8 at 9:18













    up vote
    0
    down vote










    up vote
    0
    down vote









    I have created an working example with snapshots. I just followed the the Google Maps tutorial. It did not crashed for me with or without restrictions for ios app.



    google maps working example added



    Location Manager added



    Location Updates handled



    Network Reachability Added



    Hope it helps.






    share|improve this answer












    I have created an working example with snapshots. I just followed the the Google Maps tutorial. It did not crashed for me with or without restrictions for ios app.



    google maps working example added



    Location Manager added



    Location Updates handled



    Network Reachability Added



    Hope it helps.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 8 at 9:18









    iOS_Developer

    1471315




    1471315












    • @tamsler check out the Answer
      – iOS_Developer
      Nov 8 at 9:18


















    • @tamsler check out the Answer
      – iOS_Developer
      Nov 8 at 9:18
















    @tamsler check out the Answer
    – iOS_Developer
    Nov 8 at 9:18




    @tamsler check out the Answer
    – iOS_Developer
    Nov 8 at 9:18












    up vote
    0
    down vote













    SIGABRT (Signal abort) means there should be something to signal but it's aborted some how. Usually it tells you why its crashing.




    • So first Check the console for description:


    [Console[1]




    • If there is nothing printed, Try simulator instead of real device.
      Its much more powerful than real device for debugging purposes.

    • Make sure you are in the debugging configuration:


    [Edit scheme[2]
    - You can turn on memory management options in diagnostics for better results if you doesn't find the issue: (Specially Zombie Objects)



    [diagnostics[3]




    • Also you can try add some exception breakpoint to catch the issue before it going happen:


    [exception breakpoint[4]



    I think one of the above should lead you to something more specific about the issue and it's reason. Then you can absolutely handle it.






    share|improve this answer

























      up vote
      0
      down vote













      SIGABRT (Signal abort) means there should be something to signal but it's aborted some how. Usually it tells you why its crashing.




      • So first Check the console for description:


      [Console[1]




      • If there is nothing printed, Try simulator instead of real device.
        Its much more powerful than real device for debugging purposes.

      • Make sure you are in the debugging configuration:


      [Edit scheme[2]
      - You can turn on memory management options in diagnostics for better results if you doesn't find the issue: (Specially Zombie Objects)



      [diagnostics[3]




      • Also you can try add some exception breakpoint to catch the issue before it going happen:


      [exception breakpoint[4]



      I think one of the above should lead you to something more specific about the issue and it's reason. Then you can absolutely handle it.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        SIGABRT (Signal abort) means there should be something to signal but it's aborted some how. Usually it tells you why its crashing.




        • So first Check the console for description:


        [Console[1]




        • If there is nothing printed, Try simulator instead of real device.
          Its much more powerful than real device for debugging purposes.

        • Make sure you are in the debugging configuration:


        [Edit scheme[2]
        - You can turn on memory management options in diagnostics for better results if you doesn't find the issue: (Specially Zombie Objects)



        [diagnostics[3]




        • Also you can try add some exception breakpoint to catch the issue before it going happen:


        [exception breakpoint[4]



        I think one of the above should lead you to something more specific about the issue and it's reason. Then you can absolutely handle it.






        share|improve this answer












        SIGABRT (Signal abort) means there should be something to signal but it's aborted some how. Usually it tells you why its crashing.




        • So first Check the console for description:


        [Console[1]




        • If there is nothing printed, Try simulator instead of real device.
          Its much more powerful than real device for debugging purposes.

        • Make sure you are in the debugging configuration:


        [Edit scheme[2]
        - You can turn on memory management options in diagnostics for better results if you doesn't find the issue: (Specially Zombie Objects)



        [diagnostics[3]




        • Also you can try add some exception breakpoint to catch the issue before it going happen:


        [exception breakpoint[4]



        I think one of the above should lead you to something more specific about the issue and it's reason. Then you can absolutely handle it.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 14 mins ago









        Mojtaba Hosseini

        1,946319




        1,946319






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53109434%2fios-google-maps-api-failing-when-applying-api-key-restrictions%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            Popular posts from this blog

            Guess what letter conforming each word

            Port of Spain

            Run scheduled task as local user group (not BUILTIN)