How to open Apple Maps using Flutter/Dart?How to change the name of an iOS app?How can I make a UITextField move up when the keyboard is present - on starting to edit?Rejected for no Google logo - mapkit - but no way to show itShould I be worried about rumors that Apple will stop using Google Maps in iOS6?How to open links in Apple Maps or Google Maps?Options for displaying multiple routes on iPhone Map (iOS 4+)Using google map without leaving the appForward geocode user input on iOS like Apple's Maps App doesOpen directions func not opening apple maps programmaticallyFlutter/Dart which architecture for App and potentially web app?

What to look for in a spotting scope?

Prevent use of CNAME record for untrusted domain

Filling a listlineplot with a texture

What are the occurences of total war in the Native Americans?

What is this artifact and how to avoid it?

Is first Ubuntu user root?

When, exactly, does the Rogue Scout get to use their Skirmisher ability?

Why doesn't 'd /= d' throw a division by zero exception?

Duplicate instruments in unison in an orchestra

Discussing work with supervisor in an invited dinner with his family

Higman's lemma and a manuscript of Erdős and Rado

How to gently end involvement with an online community?

Handling Disruptive Student on the Autism Spectrum

When calculating a force, why do I get different result when I try to calculate via torque vs via sum of forces at an axis?

Does ostensible/specious make sense in this sentence?

How is linear momentum conserved in case of a freely falling body?

How long do you think advanced cybernetic implants would plausibly last?

"Opusculum hoc, quamdiu vixero, doctioribus emendandum offero."?

How much does Commander Data weigh?

How to maximize the drop odds of the Essences in Diablo II?

about to retire but not retired yet, employed but not working any more

Are the players on the same team as the DM?

Talk interpreter

Expressing the act of drawing



How to open Apple Maps using Flutter/Dart?


How to change the name of an iOS app?How can I make a UITextField move up when the keyboard is present - on starting to edit?Rejected for no Google logo - mapkit - but no way to show itShould I be worried about rumors that Apple will stop using Google Maps in iOS6?How to open links in Apple Maps or Google Maps?Options for displaying multiple routes on iPhone Map (iOS 4+)Using google map without leaving the appForward geocode user input on iOS like Apple's Maps App doesOpen directions func not opening apple maps programmaticallyFlutter/Dart which architecture for App and potentially web app?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















Our Flutter App shows a number of locations using Google Maps, if available, or else using the local browser.



Although we had already previously uploaded a binary code for iOS which was accepted by Apple and successfully published in the App Store, now that we have added some more locations and thus attempted to publish a new version, Apple has rejected our binary, stating that it is mandatory to use "Apple Maps" instead of anything that starts with a "G", like Google...



The rejection message reads as follows:





Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app.



Next Steps



To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.





I have found that there exists some documentation about a Javascript library named MapKit JS, which serves precisely the purpose of interacting with Apple Maps: https://developer.apple.com/maps/mapkitjs/



<script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script>

<script>
mapkit.init(
authorizationCallback: function(done)
var xhr = new XMLHttpRequest();
xhr.open("GET", "/services/jwt");
xhr.addEventListener("load", function()
done(this.responseText);
);
xhr.send();

);

var Cupertino = new mapkit.CoordinateRegion(
new mapkit.Coordinate(37.3316850890998, -122.030067374026),
new mapkit.CoordinateSpan(0.167647972, 0.354985255)
);
var map = new mapkit.Map("map");
map.region = Cupertino;
</script>


Nevertheless, I could really use some help no how to connect with this MapKit JS using DART, instead of JAVA, for our Flutter application.



Thank you immensely for your kind help!



Daniel










share|improve this question



















  • 1





    Interesting, AppStore full of apps that use Google Maps

    – Evgeny Karkan
    Mar 27 at 21:44











  • even more interestingly, this very same App was already approved and published less than one month ago... it is only now that we have added a few more locations, that Apple has suddenly decided that we must use Apple Maps instead of Google Maps... the truth of it is that our updated has been rejected...

    – CostaRica
    Mar 27 at 22:19












  • to justify their rejection, so they say: Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

    – CostaRica
    Mar 27 at 22:20






  • 1





    @CostaRica, what do you mean when you say that the problem arose when you have added some more locations ?

    – SimoneMSR
    May 13 at 15:48











  • hello, thanks for asking... I am not suggesting that there existed some technical connection or consequence from adding more locations... What I was trying to say is the contrary, that the sudden rejection to our update from Apple was arbitrary, because they hadn't protested nor said anything about it before... I mention that we added more places, using the very same logic, because this is exactly what we did, and this was the only difference between the first version which was accepted, and the second which was rejected... it just means there was more data, more Google places...

    – CostaRica
    May 14 at 7:11

















3















Our Flutter App shows a number of locations using Google Maps, if available, or else using the local browser.



Although we had already previously uploaded a binary code for iOS which was accepted by Apple and successfully published in the App Store, now that we have added some more locations and thus attempted to publish a new version, Apple has rejected our binary, stating that it is mandatory to use "Apple Maps" instead of anything that starts with a "G", like Google...



The rejection message reads as follows:





Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app.



Next Steps



To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.





I have found that there exists some documentation about a Javascript library named MapKit JS, which serves precisely the purpose of interacting with Apple Maps: https://developer.apple.com/maps/mapkitjs/



<script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script>

<script>
mapkit.init(
authorizationCallback: function(done)
var xhr = new XMLHttpRequest();
xhr.open("GET", "/services/jwt");
xhr.addEventListener("load", function()
done(this.responseText);
);
xhr.send();

);

var Cupertino = new mapkit.CoordinateRegion(
new mapkit.Coordinate(37.3316850890998, -122.030067374026),
new mapkit.CoordinateSpan(0.167647972, 0.354985255)
);
var map = new mapkit.Map("map");
map.region = Cupertino;
</script>


Nevertheless, I could really use some help no how to connect with this MapKit JS using DART, instead of JAVA, for our Flutter application.



Thank you immensely for your kind help!



Daniel










share|improve this question



















  • 1





    Interesting, AppStore full of apps that use Google Maps

    – Evgeny Karkan
    Mar 27 at 21:44











  • even more interestingly, this very same App was already approved and published less than one month ago... it is only now that we have added a few more locations, that Apple has suddenly decided that we must use Apple Maps instead of Google Maps... the truth of it is that our updated has been rejected...

    – CostaRica
    Mar 27 at 22:19












  • to justify their rejection, so they say: Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

    – CostaRica
    Mar 27 at 22:20






  • 1





    @CostaRica, what do you mean when you say that the problem arose when you have added some more locations ?

    – SimoneMSR
    May 13 at 15:48











  • hello, thanks for asking... I am not suggesting that there existed some technical connection or consequence from adding more locations... What I was trying to say is the contrary, that the sudden rejection to our update from Apple was arbitrary, because they hadn't protested nor said anything about it before... I mention that we added more places, using the very same logic, because this is exactly what we did, and this was the only difference between the first version which was accepted, and the second which was rejected... it just means there was more data, more Google places...

    – CostaRica
    May 14 at 7:11













3












3








3


2






Our Flutter App shows a number of locations using Google Maps, if available, or else using the local browser.



Although we had already previously uploaded a binary code for iOS which was accepted by Apple and successfully published in the App Store, now that we have added some more locations and thus attempted to publish a new version, Apple has rejected our binary, stating that it is mandatory to use "Apple Maps" instead of anything that starts with a "G", like Google...



The rejection message reads as follows:





Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app.



Next Steps



To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.





I have found that there exists some documentation about a Javascript library named MapKit JS, which serves precisely the purpose of interacting with Apple Maps: https://developer.apple.com/maps/mapkitjs/



<script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script>

<script>
mapkit.init(
authorizationCallback: function(done)
var xhr = new XMLHttpRequest();
xhr.open("GET", "/services/jwt");
xhr.addEventListener("load", function()
done(this.responseText);
);
xhr.send();

);

var Cupertino = new mapkit.CoordinateRegion(
new mapkit.Coordinate(37.3316850890998, -122.030067374026),
new mapkit.CoordinateSpan(0.167647972, 0.354985255)
);
var map = new mapkit.Map("map");
map.region = Cupertino;
</script>


Nevertheless, I could really use some help no how to connect with this MapKit JS using DART, instead of JAVA, for our Flutter application.



Thank you immensely for your kind help!



Daniel










share|improve this question














Our Flutter App shows a number of locations using Google Maps, if available, or else using the local browser.



Although we had already previously uploaded a binary code for iOS which was accepted by Apple and successfully published in the App Store, now that we have added some more locations and thus attempted to publish a new version, Apple has rejected our binary, stating that it is mandatory to use "Apple Maps" instead of anything that starts with a "G", like Google...



The rejection message reads as follows:





Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app.



Next Steps



To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.





I have found that there exists some documentation about a Javascript library named MapKit JS, which serves precisely the purpose of interacting with Apple Maps: https://developer.apple.com/maps/mapkitjs/



<script src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js"></script>

<script>
mapkit.init(
authorizationCallback: function(done)
var xhr = new XMLHttpRequest();
xhr.open("GET", "/services/jwt");
xhr.addEventListener("load", function()
done(this.responseText);
);
xhr.send();

);

var Cupertino = new mapkit.CoordinateRegion(
new mapkit.Coordinate(37.3316850890998, -122.030067374026),
new mapkit.CoordinateSpan(0.167647972, 0.354985255)
);
var map = new mapkit.Map("map");
map.region = Cupertino;
</script>


Nevertheless, I could really use some help no how to connect with this MapKit JS using DART, instead of JAVA, for our Flutter application.



Thank you immensely for your kind help!



Daniel







ios dart flutter mapkit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 19:23









CostaRicaCostaRica

217 bronze badges




217 bronze badges










  • 1





    Interesting, AppStore full of apps that use Google Maps

    – Evgeny Karkan
    Mar 27 at 21:44











  • even more interestingly, this very same App was already approved and published less than one month ago... it is only now that we have added a few more locations, that Apple has suddenly decided that we must use Apple Maps instead of Google Maps... the truth of it is that our updated has been rejected...

    – CostaRica
    Mar 27 at 22:19












  • to justify their rejection, so they say: Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

    – CostaRica
    Mar 27 at 22:20






  • 1





    @CostaRica, what do you mean when you say that the problem arose when you have added some more locations ?

    – SimoneMSR
    May 13 at 15:48











  • hello, thanks for asking... I am not suggesting that there existed some technical connection or consequence from adding more locations... What I was trying to say is the contrary, that the sudden rejection to our update from Apple was arbitrary, because they hadn't protested nor said anything about it before... I mention that we added more places, using the very same logic, because this is exactly what we did, and this was the only difference between the first version which was accepted, and the second which was rejected... it just means there was more data, more Google places...

    – CostaRica
    May 14 at 7:11












  • 1





    Interesting, AppStore full of apps that use Google Maps

    – Evgeny Karkan
    Mar 27 at 21:44











  • even more interestingly, this very same App was already approved and published less than one month ago... it is only now that we have added a few more locations, that Apple has suddenly decided that we must use Apple Maps instead of Google Maps... the truth of it is that our updated has been rejected...

    – CostaRica
    Mar 27 at 22:19












  • to justify their rejection, so they say: Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

    – CostaRica
    Mar 27 at 22:20






  • 1





    @CostaRica, what do you mean when you say that the problem arose when you have added some more locations ?

    – SimoneMSR
    May 13 at 15:48











  • hello, thanks for asking... I am not suggesting that there existed some technical connection or consequence from adding more locations... What I was trying to say is the contrary, that the sudden rejection to our update from Apple was arbitrary, because they hadn't protested nor said anything about it before... I mention that we added more places, using the very same logic, because this is exactly what we did, and this was the only difference between the first version which was accepted, and the second which was rejected... it just means there was more data, more Google places...

    – CostaRica
    May 14 at 7:11







1




1





Interesting, AppStore full of apps that use Google Maps

– Evgeny Karkan
Mar 27 at 21:44





Interesting, AppStore full of apps that use Google Maps

– Evgeny Karkan
Mar 27 at 21:44













even more interestingly, this very same App was already approved and published less than one month ago... it is only now that we have added a few more locations, that Apple has suddenly decided that we must use Apple Maps instead of Google Maps... the truth of it is that our updated has been rejected...

– CostaRica
Mar 27 at 22:19






even more interestingly, this very same App was already approved and published less than one month ago... it is only now that we have added a few more locations, that Apple has suddenly decided that we must use Apple Maps instead of Google Maps... the truth of it is that our updated has been rejected...

– CostaRica
Mar 27 at 22:19














to justify their rejection, so they say: Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

– CostaRica
Mar 27 at 22:20





to justify their rejection, so they say: Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.

– CostaRica
Mar 27 at 22:20




1




1





@CostaRica, what do you mean when you say that the problem arose when you have added some more locations ?

– SimoneMSR
May 13 at 15:48





@CostaRica, what do you mean when you say that the problem arose when you have added some more locations ?

– SimoneMSR
May 13 at 15:48













hello, thanks for asking... I am not suggesting that there existed some technical connection or consequence from adding more locations... What I was trying to say is the contrary, that the sudden rejection to our update from Apple was arbitrary, because they hadn't protested nor said anything about it before... I mention that we added more places, using the very same logic, because this is exactly what we did, and this was the only difference between the first version which was accepted, and the second which was rejected... it just means there was more data, more Google places...

– CostaRica
May 14 at 7:11





hello, thanks for asking... I am not suggesting that there existed some technical connection or consequence from adding more locations... What I was trying to say is the contrary, that the sudden rejection to our update from Apple was arbitrary, because they hadn't protested nor said anything about it before... I mention that we added more places, using the very same logic, because this is exactly what we did, and this was the only difference between the first version which was accepted, and the second which was rejected... it just means there was more data, more Google places...

– CostaRica
May 14 at 7:11












3 Answers
3






active

oldest

votes


















2















Just an idea but maybe you can try to use the url_launch plugin to launch a url following the schemata given in the apple maps url schemata given here: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1






share|improve this answer
































    1















    Firstly, install url_plugin



    Secondly: add below code in Info.plist



    <key>LSApplicationQueriesSchemes</key>
    <array>
    <string>googlechromes</string>
    <string>comgooglemaps</string>
    </array>


    Thirdly:



    var urlAppleMaps = 'https://maps.apple.com/?q=$lat,$lng';

    if (await canLaunch(urlAppleMaps))
    await launch(urlAppleMaps);
    else
    throw 'Could not launch $url';






    share|improve this answer
































      0















      A simple solution I have found is to replace the google maps URL with a maps.apple.com equivalent, using the same url_launcher function.



      For example, the original function for Google Maps:



      void _mapaBethania() async 
      const url = "https://www.google.com/maps/place/Panamanian+Institute+for+Special+Training/@9.0067418,-79.5300556,17z/data=!3m1!4b1!4m5!3m4!1s0x8faca84549395297:0x9c54b1fdb96ac590!8m2!3d9.0067365!4d-79.5278669";
      if (await canLaunch(url))
      await launch(url);
      else
      throw 'Lo sentimos, no es posible abrir: $url';




      Has become:



      void _mapaBethania() async 
      const url = "https://maps.apple.com/?q=IPHE&ll=9.0067418,-79.5300556&z=16";
      if (await canLaunch(url))
      await launch(url);
      else
      throw 'Lo sentimos, no es posible abrir: $url';




      Nevertheless, although this change does fulfill Apple's enforced obligation to use their own software instead of the competition's, the user experience with Apple Maps is very poor, because once the Map App is shown, it becomes a bit confusing and difficult to return back to the original App.



      Therefore, I am planning to write code that enables both options, Apple Maps in order to comply with Apple enforcement, and also Google Maps in order to provide a better user experience, despite Apple.



      Anyway, the latter is just a personal opinion; the true fact is that replacing the URL for a maps.apple.com equivalent using the same launch_url function, does seem acceptable to comply with Apple requirements.






      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%2f55385029%2fhow-to-open-apple-maps-using-flutter-dart%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















        Just an idea but maybe you can try to use the url_launch plugin to launch a url following the schemata given in the apple maps url schemata given here: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1






        share|improve this answer





























          2















          Just an idea but maybe you can try to use the url_launch plugin to launch a url following the schemata given in the apple maps url schemata given here: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1






          share|improve this answer



























            2














            2










            2









            Just an idea but maybe you can try to use the url_launch plugin to launch a url following the schemata given in the apple maps url schemata given here: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1






            share|improve this answer













            Just an idea but maybe you can try to use the url_launch plugin to launch a url following the schemata given in the apple maps url schemata given here: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 28 at 7:49









            ehhcehhc

            384 bronze badges




            384 bronze badges


























                1















                Firstly, install url_plugin



                Secondly: add below code in Info.plist



                <key>LSApplicationQueriesSchemes</key>
                <array>
                <string>googlechromes</string>
                <string>comgooglemaps</string>
                </array>


                Thirdly:



                var urlAppleMaps = 'https://maps.apple.com/?q=$lat,$lng';

                if (await canLaunch(urlAppleMaps))
                await launch(urlAppleMaps);
                else
                throw 'Could not launch $url';






                share|improve this answer





























                  1















                  Firstly, install url_plugin



                  Secondly: add below code in Info.plist



                  <key>LSApplicationQueriesSchemes</key>
                  <array>
                  <string>googlechromes</string>
                  <string>comgooglemaps</string>
                  </array>


                  Thirdly:



                  var urlAppleMaps = 'https://maps.apple.com/?q=$lat,$lng';

                  if (await canLaunch(urlAppleMaps))
                  await launch(urlAppleMaps);
                  else
                  throw 'Could not launch $url';






                  share|improve this answer



























                    1














                    1










                    1









                    Firstly, install url_plugin



                    Secondly: add below code in Info.plist



                    <key>LSApplicationQueriesSchemes</key>
                    <array>
                    <string>googlechromes</string>
                    <string>comgooglemaps</string>
                    </array>


                    Thirdly:



                    var urlAppleMaps = 'https://maps.apple.com/?q=$lat,$lng';

                    if (await canLaunch(urlAppleMaps))
                    await launch(urlAppleMaps);
                    else
                    throw 'Could not launch $url';






                    share|improve this answer













                    Firstly, install url_plugin



                    Secondly: add below code in Info.plist



                    <key>LSApplicationQueriesSchemes</key>
                    <array>
                    <string>googlechromes</string>
                    <string>comgooglemaps</string>
                    </array>


                    Thirdly:



                    var urlAppleMaps = 'https://maps.apple.com/?q=$lat,$lng';

                    if (await canLaunch(urlAppleMaps))
                    await launch(urlAppleMaps);
                    else
                    throw 'Could not launch $url';







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jul 1 at 14:11









                    BaDoBaDo

                    2872 silver badges15 bronze badges




                    2872 silver badges15 bronze badges
























                        0















                        A simple solution I have found is to replace the google maps URL with a maps.apple.com equivalent, using the same url_launcher function.



                        For example, the original function for Google Maps:



                        void _mapaBethania() async 
                        const url = "https://www.google.com/maps/place/Panamanian+Institute+for+Special+Training/@9.0067418,-79.5300556,17z/data=!3m1!4b1!4m5!3m4!1s0x8faca84549395297:0x9c54b1fdb96ac590!8m2!3d9.0067365!4d-79.5278669";
                        if (await canLaunch(url))
                        await launch(url);
                        else
                        throw 'Lo sentimos, no es posible abrir: $url';




                        Has become:



                        void _mapaBethania() async 
                        const url = "https://maps.apple.com/?q=IPHE&ll=9.0067418,-79.5300556&z=16";
                        if (await canLaunch(url))
                        await launch(url);
                        else
                        throw 'Lo sentimos, no es posible abrir: $url';




                        Nevertheless, although this change does fulfill Apple's enforced obligation to use their own software instead of the competition's, the user experience with Apple Maps is very poor, because once the Map App is shown, it becomes a bit confusing and difficult to return back to the original App.



                        Therefore, I am planning to write code that enables both options, Apple Maps in order to comply with Apple enforcement, and also Google Maps in order to provide a better user experience, despite Apple.



                        Anyway, the latter is just a personal opinion; the true fact is that replacing the URL for a maps.apple.com equivalent using the same launch_url function, does seem acceptable to comply with Apple requirements.






                        share|improve this answer





























                          0















                          A simple solution I have found is to replace the google maps URL with a maps.apple.com equivalent, using the same url_launcher function.



                          For example, the original function for Google Maps:



                          void _mapaBethania() async 
                          const url = "https://www.google.com/maps/place/Panamanian+Institute+for+Special+Training/@9.0067418,-79.5300556,17z/data=!3m1!4b1!4m5!3m4!1s0x8faca84549395297:0x9c54b1fdb96ac590!8m2!3d9.0067365!4d-79.5278669";
                          if (await canLaunch(url))
                          await launch(url);
                          else
                          throw 'Lo sentimos, no es posible abrir: $url';




                          Has become:



                          void _mapaBethania() async 
                          const url = "https://maps.apple.com/?q=IPHE&ll=9.0067418,-79.5300556&z=16";
                          if (await canLaunch(url))
                          await launch(url);
                          else
                          throw 'Lo sentimos, no es posible abrir: $url';




                          Nevertheless, although this change does fulfill Apple's enforced obligation to use their own software instead of the competition's, the user experience with Apple Maps is very poor, because once the Map App is shown, it becomes a bit confusing and difficult to return back to the original App.



                          Therefore, I am planning to write code that enables both options, Apple Maps in order to comply with Apple enforcement, and also Google Maps in order to provide a better user experience, despite Apple.



                          Anyway, the latter is just a personal opinion; the true fact is that replacing the URL for a maps.apple.com equivalent using the same launch_url function, does seem acceptable to comply with Apple requirements.






                          share|improve this answer



























                            0














                            0










                            0









                            A simple solution I have found is to replace the google maps URL with a maps.apple.com equivalent, using the same url_launcher function.



                            For example, the original function for Google Maps:



                            void _mapaBethania() async 
                            const url = "https://www.google.com/maps/place/Panamanian+Institute+for+Special+Training/@9.0067418,-79.5300556,17z/data=!3m1!4b1!4m5!3m4!1s0x8faca84549395297:0x9c54b1fdb96ac590!8m2!3d9.0067365!4d-79.5278669";
                            if (await canLaunch(url))
                            await launch(url);
                            else
                            throw 'Lo sentimos, no es posible abrir: $url';




                            Has become:



                            void _mapaBethania() async 
                            const url = "https://maps.apple.com/?q=IPHE&ll=9.0067418,-79.5300556&z=16";
                            if (await canLaunch(url))
                            await launch(url);
                            else
                            throw 'Lo sentimos, no es posible abrir: $url';




                            Nevertheless, although this change does fulfill Apple's enforced obligation to use their own software instead of the competition's, the user experience with Apple Maps is very poor, because once the Map App is shown, it becomes a bit confusing and difficult to return back to the original App.



                            Therefore, I am planning to write code that enables both options, Apple Maps in order to comply with Apple enforcement, and also Google Maps in order to provide a better user experience, despite Apple.



                            Anyway, the latter is just a personal opinion; the true fact is that replacing the URL for a maps.apple.com equivalent using the same launch_url function, does seem acceptable to comply with Apple requirements.






                            share|improve this answer













                            A simple solution I have found is to replace the google maps URL with a maps.apple.com equivalent, using the same url_launcher function.



                            For example, the original function for Google Maps:



                            void _mapaBethania() async 
                            const url = "https://www.google.com/maps/place/Panamanian+Institute+for+Special+Training/@9.0067418,-79.5300556,17z/data=!3m1!4b1!4m5!3m4!1s0x8faca84549395297:0x9c54b1fdb96ac590!8m2!3d9.0067365!4d-79.5278669";
                            if (await canLaunch(url))
                            await launch(url);
                            else
                            throw 'Lo sentimos, no es posible abrir: $url';




                            Has become:



                            void _mapaBethania() async 
                            const url = "https://maps.apple.com/?q=IPHE&ll=9.0067418,-79.5300556&z=16";
                            if (await canLaunch(url))
                            await launch(url);
                            else
                            throw 'Lo sentimos, no es posible abrir: $url';




                            Nevertheless, although this change does fulfill Apple's enforced obligation to use their own software instead of the competition's, the user experience with Apple Maps is very poor, because once the Map App is shown, it becomes a bit confusing and difficult to return back to the original App.



                            Therefore, I am planning to write code that enables both options, Apple Maps in order to comply with Apple enforcement, and also Google Maps in order to provide a better user experience, despite Apple.



                            Anyway, the latter is just a personal opinion; the true fact is that replacing the URL for a maps.apple.com equivalent using the same launch_url function, does seem acceptable to comply with Apple requirements.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 14 at 18:38









                            CostaRicaCostaRica

                            217 bronze badges




                            217 bronze badges






























                                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%2f55385029%2fhow-to-open-apple-maps-using-flutter-dart%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

                                Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                                SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                                은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현