GithubHelp home page GithubHelp logo

pikaju / flutter-maps-launcher Goto Github PK

View Code? Open in Web Editor NEW
60.0 2.0 43.0 228 KB

Simple Flutter package to open the maps application (or browser) on all platforms.

Home Page: https://pub.dev/packages/maps_launcher

License: MIT License

Objective-C 1.15% Dart 8.47% Kotlin 2.36% Swift 4.09% HTML 6.24% CMake 27.98% C++ 42.88% C 4.19% Ruby 2.64%

flutter-maps-launcher's Introduction

Maps launcher for Flutter

A simple package that uses url_launcher to launch the maps app with the proper scheme on all platforms.

On iOS, map links as specified by Apple are launched. On Android, the geo intent is used as documented here. For web and other platforms, the plugin will simply launch Google Maps.

Usage

import 'package:maps_launcher/maps_launcher.dart';

...

MapsLauncher.launchQuery('1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA');

MapsLauncher.launchCoordinates(37.4220041, -122.0862462);

Supported SDK versions

Consult the table provided by the url_launcher documentation to see which SDK versions maps_launcher supports.

flutter-maps-launcher's People

Contributors

asaarnak avatar ateal avatar lenlo avatar pikaju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter-maps-launcher's Issues

Needs ios 10.0 or greater to build

My app targets from ios 9.0 However after I added this package I had to change it to 10.0 for the build to succeed. I think this should be mentioned in the docs.

Failed to build on IOS

Hello,

The package works well on my IOS simulator, but the build failed when I run it on my device.

Any idea about how to fix ?
thank you.


Failed to build iOS app
Error output from Xcode build:

2021-01-11 20:25:43.992 xcodebuild[4730:4360517] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 62cdf2dab688e03ecf77f1cfc4a6f43305f211e6 was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fd27d53a830>
Method: -platform
Thread: <NSThread: 0x7fd27bd369d0>{number = 7, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2021-01-11 20:25:44.228 xcodebuild[4730:4360516] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 62cdf2dab688e03ecf77f1cfc4a6f43305f211e6 was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fd27d53a830>
Method: -platform
Thread: <NSThread: 0x7fd27d37a270>{number = 9, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **

Xcode's output:

/Users/benjaminazogui/Development/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+17/ios/Classes/FLTImagePickerPlugin.m:14
9:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of
UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil)
^
In module 'UIKit' imported from /Users/benjaminazogui/Development/Projects/gitProjects/Service Adom Pro/services_adom_pro/ios/Pods/Target Support
Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk/System/Library/Frameworks/UIKit.framework/He
aders/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
1 warning generated.
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility51'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
Undefined symbols for architecture arm64:
"_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from:
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCompatibility51", referenced from:
_swift_FORCE_LOAD$swiftCompatibility51$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibility51$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCompatibility50", referenced from:
_swift_FORCE_LOAD$swiftCompatibility50$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibility50$_maps_launcher)
"_swift_FORCE_LOAD$swiftCoreAudio", referenced from:
_swift_FORCE_LOAD$swiftCoreAudio$maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreAudio$maps_launcher)
"type metadata for Swift.String", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"swift_bridgeObjectRelease", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftCoreMedia", referenced from:
_swift_FORCE_LOAD$swiftCoreMedia$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreMedia$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCoreImage", referenced from:
_swift_FORCE_LOAD$swiftCoreImage$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreImage$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCoreGraphics", referenced from:
_swift_FORCE_LOAD$swiftCoreGraphics$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreGraphics$_maps_launcher)
"_swift_FORCE_LOAD$_swiftQuartzCore", referenced from:
_swift_FORCE_LOAD$swiftQuartzCore$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftQuartzCore$_maps_launcher)
"_swift_release", referenced from:
___swift_destroy_boxed_opaque_existential_0 in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftDispatch", referenced from:
_swift_FORCE_LOAD$swiftDispatch$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftDispatch$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCoreFoundation", referenced from:
_swift_FORCE_LOAD$swiftCoreFoundation$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreFoundation$maps_launcher)
"swift_getInitializedObjCClass", referenced from:
static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
type metadata accessor for maps_launcher.SwiftMapsLauncherPlugin in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftFoundation", referenced from:
_swift_FORCE_LOAD$swiftFoundation$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftFoundation$_maps_launcher)
"value witness table for Builtin.UnknownObject", referenced from:
full type metadata for maps_launcher.SwiftMapsLauncherPlugin in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"(extension in Foundation):Swift.String._bridgeToObjectiveC() -> __C.NSString", referenced from:
static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"Swift.bridgeAnythingToObjectiveC(A) -> Swift.AnyObject", referenced from:
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_getTypeByMangledNameInContext", referenced from:
___swift_instantiateConcreteTypeFromMangledName in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftUIKit", referenced from:
_swift_FORCE_LOAD$swiftUIKit$maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftUIKit$maps_launcher)
"Swift.String.append(Swift.String) -> ()", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftDarwin", referenced from:
_swift_FORCE_LOAD$swiftDarwin$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftDarwin$maps_launcher)
"swift_unknownObjectRelease", referenced from:
static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"static (extension in Foundation):Swift.String.unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(
: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftMetal", referenced from:
_swift_FORCE_LOAD$swiftMetal$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftMetal$_maps_launcher)
"_swift_unknownObjectRetain", referenced from:
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftObjectiveC", referenced from:
_swift_FORCE_LOAD$swiftObjectiveC$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftObjectiveC$_maps_launcher)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

PlatformException after opening maps on IOS

When using MapsLauncher.launchQuery() the Maps app opens correctly with the position but in background a PlatformException is triggered.
The throwing method is _failedSafariViewControllerLoadException() of url_launcher_ios package.

Versions:
maps_launcher: 2.2.1
url_launcher: 6.2.6
url_launcher_ios: 6.2.5

Apple Maps will open in app browser first

When initiating a location request within the Flutter application using Apple Maps, the current behavior involves the URL being opened within an in-app browser. Ideally, the desired outcome is to directly launch the Apple Maps app instead of utilizing an intermediary browser.

choose map provider

Hi, would you be open to adding methods or params to allow the user to choose the map provider? For example, many on iOS devices prefer using Google Maps over Apple Maps.

Thanks!

Error launching Waze app

Description:
Package doesn't work for Waze app, both query and coordinates opens Waze but shows an error dialog.

image

How to reproduce:
Run example app on Android and launch query or coordinates then select Waze app.

Tested with version 2.0.1 on Android 9 with Waze installed

Doesn't work with Maps Go

If I have installed both Google Maps and Google Maps Go address will work with google maps but it does not work with google maps go in Android devices.

maps go shows empty string in address field (same as if we just opened the app by its icon and not by this package.

Any idea or fixes for that?

Needs android namespace for Gradle 8 support

Bug report

Describe the bug

A problem occurred configuring project ':firebase_auth'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Please specify a namespace in the module's build.gradle file like so:
android {
    namespace 'com.example.namespace'
}

Steps to reproduce

Steps to reproduce the behavior:

  1. Run AGP in latest Android Studio

Expected behavior

Should be compatible with the version of Gradle suggested by Android Studio.

Destination Cordinates are not getting passes in Uber , ola And other Apps.

When I am launching a location through it I am getting a dialogue (which you did use Geo intent of Android) for selecting an app to launch the app. Since my phone has Uber, Ola, and Rapido (cab services in India) I am getting the option to open the location with these apps. when I launch using Google map it's ok as I am getting the required Location Icon at the given coordinates and my current location but when I launch directly with Uber I Expect to have a ride book window directly from my current location to my Destination Window as happens in case of What's app. Please check the behavior of what's app once for it.
I also tried to google. navigation intent of Android but this is also not working please help me in figuring out it. Please connect me directly over email at [email protected]

Crash when opening a maps query using ios

Looking for a fix for this...

Code is relatively simple, the maps query is set up correctly and the location found but this error is thrown on both a device and simulator:

Exception has occurred.
PlatformException (PlatformException(Error, Error while launching https://maps.apple.com/?q=Palmerston+North+Bridge+Club%0D%0ACorner+Cook+and+Cuba+Streets%2C+Palmerston+North, null, null))

The maps app does open and the search is run but on returning to the app it's frozen with the error showing in the editor.

The class was stable and no errors until the maps launcher was added.

class EventVenueRow extends StatelessWidget {
  const EventVenueRow(this.label, this.icon, this.value, {Key? key})
      : super(key: key);

  final String label;
  final IconData icon;
  final String value;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(8.0),
      child: Row(
          children: [
            eventIcon(label, icon),
            eventLabel(label),
            Expanded(
              child: GestureDetector(
                onTap: () => MapsLauncher.launchQuery(value),
                child: Semantics(
                  label: 'Event $label is $value',
                  child: Text(
                    value,
                    style: const TextStyle(
                      fontSize: 15,
                      fontWeight: FontWeight.bold,
                      overflow: TextOverflow.visible,
                    ),
                  ),
                ),
              ),
            ),
          ]),
    );
  }
}

The app is using url launcher successfully.

Some details about my setup:
Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f468f3366c (2 weeks ago) • 2023-07-12 15:19:05 -0700
Engine • revision cdbeda788a
Tools • Dart 3.0.6 • DevTools 2.23.1

from pubspec.yaml
url_launcher: ^6.1.12
maps_launcher: ^2.2.0

Multiple Directions

Hi,

Does it also cover multiple directions? I mean, are we able to use that for multiple stops?

Regards,

Doesn't open default maps

I'm calling MapsLauncher.launchQuery(fullAddress); in my flutter app. This opens up the chooser dialog on my Android device.
Zoom is one of the open with options.
Expected - To open google maps directly on Android

Upgrade maps_launcher please

Hi,

You need to upgrade maps_launcher package, because when I tried to upgrade url_launcher to ^6.0.3 it showed me the following:

Because maps_launcher 1.2.2+2 depends on url_launcher ^5.5.0 and no versions of maps_launcher match >1.2.2+2 <2.0.0, maps_launcher ^1.2.2+2 requires url_launcher ^5.5.0.
So, because flutter_app depends on both url_launcher ^6.0.3 and maps_launcher ^1.2.2+2, version solving failed.

I cannot upgrade url_launcher, can you please maps_launcher your package because there are many plugins which are depended on url_launcher.

Best Regards

Maps launcher is jamming my ios build

Since I upgraded maps launcher to version 1.2.1+1 (build 1) I could not build my app on ios anymore. I got this when running with --verbose.

               ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
               ld: warning: Could not find or use auto-linked library 'swiftCore'
               ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
               ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
               ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
               ld: warning: Could not find or use auto-linked library 'swiftDarwin'
               ld: warning: Could not find or use auto-linked library 'swiftUIKit'
               ld: warning: Could not find or use auto-linked library 'swiftFoundation'
               ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
               ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
               ld: warning: Could not find or use auto-linked library 'swiftMetal'
               ld: warning: Could not find or use auto-linked library 'swiftDispatch'
               ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
               ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
               Undefined symbols for architecture arm64:
                 "__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements", referenced from:
                     __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                    (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_maps_launcher)
                 "(extension in Foundation):Swift.String._bridgeToObjectiveC() -> __C.NSString", referenced from:
                     static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     @objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "Swift._bridgeAnythingToObjectiveC(A) -> Swift.AnyObject", referenced from:
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "value witness table for Builtin.UnknownObject", referenced from:
                     full type metadata for maps_launcher.SwiftMapsLauncherPlugin in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "Swift.String.append(Swift.String) -> ()", referenced from:
                     maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "__swift_FORCE_LOAD_$_swiftCompatibility50", referenced from:
                     __swift_FORCE_LOAD_$_swiftCompatibility50_$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                    (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility50_$_maps_launcher)
                 "_swift_bridgeObjectRelease", referenced from:
                     maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "type metadata for Swift.String", referenced from:
                     maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "_swift_unknownObjectRelease", referenced from:
                     static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     @objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "_swift_release", referenced from:
                     ___swift_destroy_boxed_opaque_existential_0 in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "static (extension in Foundation):Swift.String._unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String", referenced from:
                     maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "_swift_unknownObjectRetain", referenced from:
                     @objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                 "_swift_getInitializedObjCClass", referenced from:
                     static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     type metadata accessor for maps_launcher.SwiftMapsLauncherPlugin in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     @objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
                     function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional<Any>) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
               ld: symbol(s) not found for architecture arm64
               clang: error: linker command failed with exit code 1 (use -v to see invocation) ```

Namespace not specified

A problem occurred configuring project ':maps_launcher'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

 android {
     namespace 'com.example.namespace'
 }

lunch maps app with direction or two location to route in map

how can I launch the map of another app with Direction(or Route or two locations) data (every app! no like map_launcher that launch just some apps )
some like Intent package and ACTION_VIEW :

                    android_intent.Intent()
                      ..setAction(android_action.Action.ACTION_VIEW)
                      ..setData(
                        Uri.parse(
                            "http://maps.google.com/maps?saddr=17.428323,78.412567&daddr=28.6454414,77.0907573"),
                      )
                      ..startActivityForResult().then(
                        (data) => print(data),
                      );

but i want user select app by open with

Unable to build for web

With version 1.2.2+1, I'm unable to build the app for web. I am getting this error:

import 'package:maps_launcher/maps_launcher_web.dart'; ^ lib/generated_plugin_registrant.dart:22:54: Error: Getter not found: 'MapsLauncherWeb'. MapsLauncherWeb.registerWith(registry.registrarFor(MapsLauncherWeb));

1.2.2 worked fine for web, just not for iOS.

Default Apple maps

When using IOS, it launches the default app which is Apple Maps. How can i make it list the available navigation apps on IOS?
It works with android.

flutter build apk --flavor development --target lib/main_development.dart

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':maps_launcher'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

 If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 26s

No marker on Apple Maps

Going to Apple Maps goes to correct coordinates, but there is no marker put and it's not possible to start navigation.

Error launching query Waze app

Description:
Package doesn't work for Waze app, query opens Waze but shows an error dialog.
151029097-5155351a-cc80-4a50-9664-f79568e07cd9

How to reproduce:
Run example app on Android and launch query then select Waze app.

How to fix:
You need to change this line:

image

Tested with version 2.0.2 on Android 12 with Waze installed

Namespace not specified

A problem occurred configuring project ':maps_launcher'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.