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;
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
|
show 2 more comments
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
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
|
show 2 more comments
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
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
ios dart flutter mapkit
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
|
show 2 more comments
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
|
show 2 more comments
3 Answers
3
active
oldest
votes
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
add a comment |
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';
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Mar 28 at 7:49
ehhcehhc
384 bronze badges
384 bronze badges
add a comment |
add a comment |
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';
add a comment |
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';
add a comment |
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';
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';
answered Jul 1 at 14:11
BaDoBaDo
2872 silver badges15 bronze badges
2872 silver badges15 bronze badges
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 14 at 18:38
CostaRicaCostaRica
217 bronze badges
217 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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