GithubHelp home page GithubHelp logo

heremaps / here-sdk-ref-app-flutter Goto Github PK

View Code? Open in Web Editor NEW
43.0 11.0 20.0 2.22 MB

This project is the HERE SDK reference application for Flutter

License: Apache License 2.0

Kotlin 2.27% Ruby 0.46% Swift 0.10% Objective-C 0.01% Dart 97.16%
here sdk application flutter

here-sdk-ref-app-flutter's Introduction

HERE SDK Reference Application for Flutter

The reference application for the HERE SDK for Flutter (Navigate Edition) shows how a complex and release-ready project targeting iOS and Android devices may look like. You can use it as a source of inspiration for your own HERE SDK based projects - in parts or as a whole.

Overview

With this blueprint reference application you can see how UX flows can be built for the HERE SDK - covering the main use cases from searching for POIs, planning and picking a route and finally starting the trip to your destination.

  • Learn how the HERE SDK 4.x can be complemented with rich UI for your own application development.
  • Discover how to avoid common pitfalls, master edge cases and benefit from optimized end user flows.
  • All code using the HERE SDK is implemented in pure Dart following well-established clean code standards.
  • On top, the reference application is enriched with tailored graphical assets - adapted for various screen sizes and ready to be used in your own projects.

If you are looking for smaller bits & pieces or just want to get started with the integration of the HERE SDK into a simpler project, you may want to start looking into our example apps selection including a stripped down hello_map_app that accompanies the Developer's Guide for the HERE SDK.

The reference application hosted in this repo focuses on how specific features can be implemented and used within the context of a full blown Flutter application - not only to show the usage of our APIs and the HERE SDK functionality as clear and understandable as possible, but also to show how complex Flutter projects in general can be organized and developed with production quality.

Supported features (so far):

  • Search: Including suggestions, text search and search along a route corridor using the search library of the HERE SDK.
  • Routing: As of now, the reference application supports the following transport modes: car, truck, scooter and pedestrian using the routing library of the HERE SDK.
  • Turn-By-Turn Navigation: Including maneuver instructions with visual feedback and voice guidance using the navigation library of the HERE SDK.
  • Offline Maps: Including UI to download, install and update regions using the maploader library of the HERE SDK. The application can be operated offline when the in-app offline switch is activated. To operate fully offline, turn also the device's connectivity off.

screenshots

Get Started

The reference application for the HERE SDK for Flutter (Navigate Edition) requires the following prerequisites:

On top you need an IDE of your choice. This could be a text editor or IDEs such as Visual Studio Code with the Flutter extension or Android Studio.

Note: If you want to compile, build & run for iOS devices, you also need to have Xcode and CocoaPods installed. If you only target Android devices, Xcode is not required.

Confirm that you meet the overall minimum requirements as listed in the Developer's Guide for the HERE SDK for Flutter (Navigate Edition).

Add the HERE SDK Plugin

Make sure you have cloned this repository and you have downloaded the HERE SDK for Flutter (Navigate Edition), see above.

  1. Unzip the downloaded HERE SDK for Flutter package. This folder contains various files including various documentation assets.
  2. Inside the unzipped package you will find a TAR file that contains the HERE SDK plugin.
  3. Unzip the TAR file and rename the folder to 'here_sdk'. Move it inside the plugins folder.

Build the Reference Application

  1. Set your HERE SDK credentials: The credentials are read from the environment variables which are set using --dart-define.
  • If you want to set up environment variables from the CLI, run the command: flutter run --dart-define=HERESDK_ACCESS_KEY_ID=<YOUR_ACCESS_KEY_ID> --dart-define=HERESDK_ACCESS_KEY_SECRET=<YOUR_ACCESS_KEY_SECRET>

  • If you want to run from any IDE, you can add credentials to the .json file for your environment. Create a file .env/dev.json as:

    { "HERESDK_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>", "HERESDK_ACCESS_KEY_SECRET": "<YOUR_ACCESS_KEY_SECRET>" }

    And add additional run args in the IDE: --dart-define-from-file=.env/dev.json

  1. Go to the repository root folder which contains the pubspec.yaml and run the terminal command flutter pub get to fetch the required dependencies.

  2. Open the project in your IDE of choice and execute the Flutter project for your target platform.

How to build Flutter apps for Android and iOS

If you are new to Flutter, here are more detailed steps for you. You may also want to consult the official Flutter site in general and the Flutter SDK documentation in particular first.

  • Build for Android:
    • Build an Android APK by executing flutter build apk --dart-define-from-file=.env/dev.json or use the command flutter run --dart-define-from-file=.env/dev.json to build and run on an attached device.
  • Build for iOS:
    • Run pod install in the ios folder.
    • Then go back to the repository root folder and type flutter build ios --dart-define-from-file=.env/dev.json to build a Runner.app. Type flutter run --dart-define-from-file=.env/dev.json to build and run on an attached device.
    • You can open the /repository root/ios/Runner.xcworkspace project in Xcode and execute and debug from there.
    • Note: You need to have valid development certificates available to sign the app for device deployment.

Note: You can alternatively also pass the credentails during build by: flutter build apk --dart-define=HERESDK_ACCESS_KEY_ID=<YOUR_ACCESS_KEY_ID> --dart-define=HERESDK_ACCESS_KEY_SECRET=<YOUR_ACCESS_KEY_SECRET>

Contributing

You can contribute to this open source project and improve it for others. There are many ways to contribute to this project, whether you want to create an issue, submit bug reports or improve the documentation - we are happy to see your merge requests. Have a look at our contribution guide and code of conduct. Happy coding!

Questions and Support

We provide the code 'AS IS'. Using the source code does not come with any additional grant of customer support or promise of specific feature development on our part. If you have any questions, please contact us or check the tag here-api on stackoverflow.com.

License

Copyright (C) 2020-2024 HERE Europe B.V.

See the LICENSE file in the root folder of this project for license details.

For other use cases not listed in the license terms, please contact us.

Note

This application and the HERE SDK itself include open source components which require explicit attribution. Please remember to add open source notices in your project. Furthermore, we ask you not to re-sell the icons included in this project.

here-sdk-ref-app-flutter's People

Contributors

abhiditi avatar datasun avatar guru-cm-here avatar manuelklahn avatar merlin1sthere avatar mohan-manthri avatar mr-pant avatar ppiatkowski-here avatar stefan-troyke avatar tstaszak89 avatar tsteenbe 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

here-sdk-ref-app-flutter's Issues

Here Map is not in the backward of all stack widget.

Hello everyone, so I face the problem is that the here map is on the front of all stack widgets and it covers all of the stack widgets even bottomNavigationBar and appbar or else. I have tried to use the here map in another project and it worked before. but now it does not work for any project anyway.
What should I do?

This is my flutter doctor.
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/pnall02/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 13.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.68.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
• SM A105G (mobile) • R58M78MSNQJ • android-arm • Android 9 (API 28)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.3 21E230 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.53

[✓] HTTP Host Availability
• All required HTTP hosts are available

! Doctor found issues in 1 category.
Process finished with exit code 0

ios failed to build


`[app_en.arb:sharpRightTurnActionNextRoadText] ICU Syntax Error: Expected "identifier" but found "{".
    Make a hard right turn onto {{0}}
                                 ^
[app_en.arb:slightLeftTurnActionNextRoadText] ICU Syntax Error: Expected "identifier" but found "{".
    Bear left onto {{0}}
                    ^
[app_en.arb:slightRightTurnActionNextRoadText] ICU Syntax Error: Expected "identifier" but found "{".
    Bear right onto {{0}}
                     ^
[app_en.arb:downloadMapsErrorText] ICU Syntax Error: Expected "identifier" but found "{".
    Map downloading failed with error: {{error}}
                                        ^
[app_en.arb:mapRegionChildrenNumberText] ICU Syntax Error: Expected "identifier" but found "{".
    {{0}} items
     ^
[app_en.arb:sizeOfWholeAreaOfRegion] ICU Syntax Error: Expected "identifier" but found "{".
    Whole area {{0}}
                ^
[app_en.arb:stopMapDownloadDialogTitle] ICU Syntax Error: Expected "identifier" but found "{".
    Stop downloading "{{0}}"?
                       ^
[app_en.arb:updateMapsErrorText] ICU Syntax Error: Expected "identifier" but found "{".
    Map updating failed with error: {{error}}
                                     ^
Launching lib/main.dart on Ayman’s iPhone in debug mode...
main.dart:1
Signing iOS app for device deployment using developer identity: "Apple Development: ayman elarian (XXXX)"
Xcode build done.                                           14.5s
Failed to build iOS app



Xcode build done.                                           14.5s
Failed to build iOS app
Could not build the precompiled application for the device.`
[✓] Flutter (Channel stable, 3.7.3, on macOS 13.0.1 22A400 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2021.2.4)
[✓] VS Code (version 1.75.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

Map freezes when turning dark mode on/off

When turning dark mode on/off, the map will be completely frozen. Gestures still register but the map will never update, even when changing the device's theme back.

bug.mp4

Failed to lookup symbol 'here_sdk_sdk_core_GeoCoordinates_make__Double_Double'

Hey there,
Thank you for the package! I'm working with the here_sdk in my flutter app and everything is working fine. I wanted to write some tests to cover some functionality but as soon as I want to use classes from the here_sdk - in my case GeoCoordinates - I can't run my test and the following error appears:

Invalid argument(s): Failed to resolve an FFI function. Perhaps `LibraryContext.init()` was not called.
Failed to lookup symbol 'here_sdk_sdk_core_GeoCoordinates_make__Double_Double': dlsym(RTLD_DEFAULT, here_sdk_sdk_core_GeoCoordinates_make__Double_Double): symbol not found

I tried initializing the SDK using SdkContext.init(); in my setupAll-test-method, but it didn't help.

Flutter version: 3.7.12
Dart: 2.19.6
here_sdk: 4.15.5

Any hints are highly appreciated!
Thanks in advance

Support for Flutter 3.0

When will new release for Flutter 3.0, most of the packages are already migrated, but this one remains outdated for quite of time.

Instance of 'InstantiationException' on Landing Screen

I keep getting an "Instance of 'InstantiationException'" exception whenever I try to run the downloaded project. I have added the HERE SDK to the plugins folder (version: 4.15.2) but it fails every time I run it. The exception comes from assigning the Position Engine userConsentState to the _consentState variable on the landing screen. Here is the full error message:

`======== Exception caught by widgets library =======================================================
The following InstantiationException was thrown building Consumer2<AppPreferences, CustomMapStyleSettings>(dirty, dependencies: [_InheritedProviderScope<AppPreferences?>, _InheritedProviderScope<CustomMapStyleSettings?>, _InheritedTheme, _LocalizationsScope-[GlobalKey#1046e]]):
Instance of 'InstantiationException'

The relevant error-causing widget was:
Consumer2<AppPreferences, CustomMapStyleSettings> Consumer2:file:///C:/src/here/here_reference_app/here-sdk-ref-app-flutter-master-v.4.15.2/lib/landing_screen.dart:109:12
When the exception was thrown, this was the stack:
#0 ConsentInternal$Impl.fromSharedSdkNativeEngine (package:here_sdk/src/sdk/consent/consent_internal.dart:191:11)
#1 ConsentInternal.fromSharedSdkNativeEngine (package:here_sdk/src/sdk/consent/consent_internal.dart:46:68)
#2 new ConsentEngine (package:here_sdk/src/sdk/consent/consent_engine.dart:25:63)
#3 PositioningEngine._consentEngine (package:RefApp/positioning/positioning_engine.dart:34:69)
#4 PositioningEngine._consentEngine (package:RefApp/positioning/positioning_engine.dart)
#5 PositioningEngine.userConsentState (package:RefApp/positioning/positioning_engine.dart:51:45)
#6 _LandingScreenState._buildUserConsentItems (package:RefApp/landing_screen.dart:195:39)
#7 _LandingScreenState._buildDrawer (package:RefApp/landing_screen.dart:367:16)
#8 _LandingScreenState.build. (package:RefApp/landing_screen.dart:122:17)
#9 Consumer2.buildWithChild (package:provider/src/consumer.dart:206:19)
#10 SingleChildStatelessWidget.build (package:nested/nested.dart:259:41)
#11 StatelessElement.build (package:flutter/src/widgets/framework.dart:5367:49)
#12 SingleChildStatelessElement.build (package:nested/nested.dart:279:18)
#13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5297:15)
#14 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#15 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5279:5)
#16 ComponentElement.mount (package:flutter/src/widgets/framework.dart:5273:5)
#17 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (228 frames)
#245 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#246 MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6569:36)
#247 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6581:32)
... Normal element mounting (447 frames)
#694 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#701 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#708 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#715 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#722 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#729 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#736 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#743 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#750 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#757 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#764 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#771 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#778 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#785 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#792 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#799 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#806 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#813 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#820 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (35 frames)
#855 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#856 Element.updateChild (package:flutter/src/widgets/framework.dart:3707:18)
#857 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1253:16)
#858 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1222:5)
#859 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1169:18)
#860 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2719:19)
#861 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1168:13)
#862 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:1001:7)
#863 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:981:7)
#867 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 3 frames from class _Timer and dart:async-patch)
====================================================================================================`

Could not resolve all files for configuration ':app:debugRuntimeClasspath'

I don't know what's going on. but I've found a new problem so please anyone help me again.
So thank you in advance.

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform heresdk-explore-4.11.4.0.9001.release-.aar (:heresdk-explore-4.11.4.0.9001.release:) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=integration}.
> Execution failed for AarResourcesCompilerTransform: /Users/pnall02/.gradle/caches/transforms-2/files-2.1/86f7de27af1854bcd9a87e6a1c8b91b1/jetified-heresdk-explore-4.11.4.0.9001.release.
> /Users/pnall02/.gradle/caches/transforms-2/files-2.1/86f7de27af1854bcd9a87e6a1c8b91b1/jetified-heresdk-explore-4.11.4.0.9001.release/AndroidManifest.xml

///--------------------------------------------- Flutter Doctor ---------------------------------------------------------

[✓] Flutter (Channel stable, 3.0.0, on macOS 12.3 21E230 darwin-arm, locale en-GB)
• Flutter version 3.0.0 at /Users/pnall02/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ee4e09cce0 (2 months ago), 2022-05-09 16:45:18 -0700
• Engine revision d1b9a6938a
• Dart version 2.17.0
• DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/pnall02/Library/Android/sdk
• Platform android-33, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 13.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.68.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
• SM A105G (mobile) • R58M78MSNQJ • android-arm • Android 9 (API 28)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.3 21E230 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.134

[✓] HTTP Host Availability
• All required HTTP hosts are available

rightRoundaboutEnter.svg and leftRoundaboutEnter.svg

The refApp uses the 2 svg mentioned in the titile but tehse are not present in the assets folder.
As a consequence, when I run a navigation simulation I get the following error in the prompt:

flutter: ManeuverAction.rightTurn
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to load asset: "assets/maneuvers/light/rightRoundaboutEnter.svg".

Failed to async download a tile, running on Android 7 and 8

Hi,

I have followed the instructions to run this app on our devices. On Android 10 and above everything is fine. But on the devices we have tested that have Android 7 and 8 all encounter the issue of a blank map.

I have tried with other samples such as hello_map_app and still encounter the same problem. I tried to change the rendering mode to texture with no luck but looking at the logs (a sample below) its failing to download the tiles. Which led me to think credentials was the problem but as its working on newer devices I'm not sure its a credential issue.

Tried to test on WIFI and cellular. The devices all seem to meet the minimum specification required.

Versions used:
Flutter 3.16.3
Dart SDK version: 3.2.3
gradle:7.4.2

Device Spec:

Capture_22022024_3
Capture_22022024_2
Capture_22022024_4

Sample of logs:
W/DataStoreClient(13903): [WARN ] hsdk-DataStoreClient - Failed to async download a tile, please retry, catalog_handle=all, request=377894441@rendering, error=kRequestCancelled

W/DataStoreClient(13903): [WARN ] hsdk-DataStoreClient - Failed to async download a tile, please retry, catalog_handle=all, request=377894441@rendering, error=kRequestCancelled

W/DataStoreClient(13903): [WARN ] hsdk-DataStoreClient - Failed to async download a tile, please retry, catalog_handle=all, request=377894441@rendering, error=kRequestCancelled

I/RetryNetwork(13903): [INFO ] hsdk-RetryNetwork - Cancelling request parentId=8 realId=7 in the network delegate

I/RetryNetwork(13903): [INFO ] hsdk-RetryNetwork - Finishing request to url=https://direct.data.api.platform.here.com/direct/v1/query/catalogs/hrn:here:data::olp-here:ocm/layers/index/partitions?additionalFields=dataSize%2Ccrc%2Cchecksum&partition=rendering&version=109 parentId=23 realId=22 with status=OK message=OK

I/DataRepository(13903): [INFO ] hsdk-DataRepository - GetBlobData not found in cache, hrn='hrn:here:data::olp-here:ocm', key='56789087654678908765.109'

Is this project abandoned?

...Because it looks so. I suppose that the example app (msdkui) was supported till the end, whereas the last commit for this one is from January.
Maybe you would just open source WeGo, or some components from it as a library, in the same way as the msdkui was published, or via flutter pub?

Map pin moves while panning

I have been working through the reference app to get an understanding of how Here Maps works. One thing I have noticed is that while panning, the map pins seem to move while the marker does not move at all. Is there any way to avoid this?

202210211605590000.mp4

SDK Version: 4.12.3

White screen issue

I just downloaded the hello_map_app example and replaces the credentials keys. After successfully compiling and running the app it's just showing a blank screen. But when press recent tab button in android phone and click on the app it shows map on the screen. This happened even if I create a new app and new credentials or using the official provided github example.

Not able to customize HERE MAP cluster marker and Single Marker UI

Cluster Marker image and text style can be change but cluster count text alignment would be always on center and not able to modify or add any other component along with it. and marker is not getting resized with map zoom in and zoom out. for flutter.

Also there is not direct option to pass custom widget as marker. its only accepting .png or svg tiny.

I want custom widget as marker for both cluster and single marker as shown in image along with dotted polygon border. is there any way to achieve that.
using Here Map SDK Version 4.15.5.0

Following code for Marker(Didn't find way to change image once set):
MapImage.withPixelDataAndImageFormat(Uint8List, ImageFormat.png)

Currently Able to show cluster counter with following code:
MapMarkerClusterCounterStyle counterStyle = MapMarkerClusterCounterStyle(); counterStyle.textColor = Colors.black; counterStyle.fontSize = 80; MapMarkerCluster mapMarkerCluster = MapMarkerCluster.WithCounter(MapMarkerClusterImageStyle(_singleMarkerImage), counterStyle));

Cluster Marker:
image

Single Marker:
image

"Instance of 'InstantiationException'" on Android build

When I try to run downloaded project.
I'm trying to run application with HERE SDK version 4.15.5. Also try to add HERE SDK 4.16.1.

Full error message:

The following InstantiationException was thrown building Consumer2<AppPreferences, CustomMapStyleSettings>(dirty, dependencies: [_InheritedProviderScope<AppPreferences?>, _InheritedProviderScope<CustomMapStyleSettings?>, _InheritedTheme, _LocalizationsScope-[GlobalKey#1046e]]):
Instance of 'InstantiationException'

The relevant error-causing widget was:
Consumer2<AppPreferences, CustomMapStyleSettings> Consumer2:file:///C:/src/here/here_reference_app/here-sdk-ref-app-flutter-master-v.4.15.5/lib/landing_screen.dart:109:12
When the exception was thrown, this was the stack:
#0 ConsentInternal$Impl.fromSharedSdkNativeEngine (package:here_sdk/src/sdk/consent/consent_internal.dart:191:11)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/1 ConsentInternal.fromSharedSdkNativeEngine (package:here_sdk/src/sdk/consent/consent_internal.dart:46:68)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/2 new ConsentEngine (package:here_sdk/src/sdk/consent/consent_engine.dart:25:63)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/3 PositioningEngine._consentEngine (package:RefApp/positioning/positioning_engine.dart:34:69)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/4 PositioningEngine._consentEngine (package:RefApp/positioning/positioning_engine.dart)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/5 PositioningEngine.userConsentState (package:RefApp/positioning/positioning_engine.dart:51:45)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/6 _LandingScreenState._buildUserConsentItems (package:RefApp/landing_screen.dart:195:39)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/7 _LandingScreenState._buildDrawer (package:RefApp/landing_screen.dart:367:16)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/8 _LandingScreenState.build. (package:RefApp/landing_screen.dart:122:17)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/9 Consumer2.buildWithChild (package:provider/src/consumer.dart:206:19)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/10 SingleChildStatelessWidget.build (package:nested/nested.dart:259:41)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/11 StatelessElement.build (package:flutter/src/widgets/framework.dart:5367:49)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/12 SingleChildStatelessElement.build (package:nested/nested.dart:279:18)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5297:15)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/14 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/15 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5279:5)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/16 ComponentElement.mount (package:flutter/src/widgets/framework.dart:5273:5)
https://github.com/heremaps/here-sdk-ref-app-flutter/pull/17 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (228 frames)
#245 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#246 MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6569:36)
#247 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6581:32)
... Normal element mounting (447 frames)
#694 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#701 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#708 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#715 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#722 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#729 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#736 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#743 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#750 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#757 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#764 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#771 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#778 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#785 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#792 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#799 _InheritedProviderScopeElement.mount (package:provider/src/inherited_provider.dart:411:11)
... Normal element mounting (7 frames)
#806 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (7 frames)
#813 _NestedHookElement.mount (package:nested/nested.dart:187:11)
... Normal element mounting (7 frames)
#820 SingleChildWidgetElementMixin.mount (package:nested/nested.dart:222:11)
... Normal element mounting (35 frames)
#855 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#856 Element.updateChild (package:flutter/src/widgets/framework.dart:3707:18)
#857 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1253:16)
#858 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1222:5)
#859 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1169:18)
#860 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2719:19)
#861 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1168:13)
#862 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:1001:7)
#863 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:981:7)
#867 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 3 frames from class _Timer and dart:async-patch)

SDK 4 - only one listener for Navigator

Excuse me, but the other way is to write to your support team, which seems to be pointless.
Why did you allow only one listener of each type for Navigator? I suppose it is the same as NavigationManager, which in the previous version could be a singleton, and also could have multiple listeners of each type. Of course, I can have some aggregating listener, for each type, but ...
And what with, for example, map gesture listeners?

I would even notice that in the early android ages they also had one listener with set, and sometime later they changed to add approach.

problem getting the correct credentials "Flutter Navigator"

Got the app compiled and running on Android,
but when I enter my Key_Id and Secret_Key generated by here-platform access manager OAuth2.0, I get "Download Metadata failed: These credentials do not authorize access".

Routing and searching for locations are working, but no maps !

My question is, how and where do I generate the right credentials for the flutter navigator edition ?
Is the developer or the platform the right place ?
By the way, I tried both.

Cannot run on windows

Hello, I am trying to compile this app on my machine. I have navigate sdk in version 4.9.4, and cloned 581fee6

After running flutter run in the main package I receive the following error

Because every version of here_sdk from path depends on ffi 1.0.0 and dbus >=0.5.5 depends on ffi ^1.1.2, here_sdk from path is incompatible with dbus >=0.5.5.
(1) So, because flutter_local_notifications_linux >=0.4.0 depends on dbus ^0.6.0, here_sdk from path is incompatible with flutter_local_notifications_linux >=0.4.0.

    Because flutter_local_notifications >=9.2.0 <10.0.0-dev.1 depends on flutter_local_notifications_linux ^0.4.1 and no versions of flutter_local_notifications match >9.1.5 <9.2.0, flutter_local_notifications >9.1.5 <10.0.0-dev.1 requires flutter_local_notifications_linux ^0.4.1.
    And because flutter_local_notifications 9.1.5 depends on flutter_local_notifications_linux ^0.4.0, flutter_local_notifications >=9.1.5 <10.0.0-dev.1 requires flutter_local_notifications_linux ^0.4.0.
    And because here_sdk from path is incompatible with flutter_local_notifications_linux >=0.4.0 (1), here_sdk from path is incompatible with flutter_local_notifications >=9.1.5 <10.0.0-dev.1.
    So, because RefApp depends on both flutter_local_notifications ^9.1.5 and here_sdk from path, version solving failed.
pub get failed (1;     So, because RefApp depends on both flutter_local_notifications ^9.1.5 and here_sdk from path, version solving failed.)

I made every step in the readme, my OS is Windows 10. I have never used flutter before, but flutter doctor shows that everything is fine.

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19043.1415], locale pl-PL)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[√] IntelliJ IDEA Ultimate Edition (version 2021.3)
[√] VS Code (version 1.63.2)
[√] Connected device (3 available)

• No issues found!

Regards
Witold

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.