Coder Social home page Coder Social logo

Comments (3)

serdar-can avatar serdar-can commented on May 26, 2024 2

Hi @realvotum , thank you for reporting the issue.

As you said, the earlier versions are OK in both production and debug apps yet Flutter and Huawei Maps changed significantly since then. For now, you may change com.huawei.hms.flutter.map.map.MapController.java file's, void init() function's, HmsMap.RESUMED case as described below:

...
 case HmsMap.RESUMED:
                //Comment out this two lines. 
                //mapView.onCreate(null);
                //mapView.onStart();
                mapView.onResume();
                break;
...

After changing the plugin file, please do not forget to Invalidate Caches and Restart the project using Android Studio.

Also, the 1.22 Version of Flutter is released recently. It is advised to use Flutter Version 1.20 since it's the version that Huawei Map Flutter Plugin is developed.

The mentioned issue is in our update scope, we will provide a permanent solution with our next release.

from hms-flutter-plugin.

realvotum avatar realvotum commented on May 26, 2024

@SerdarCanDev good job with those comment-outs, it works this way, thanks 👍
I will wait for the official fix in the next release of the plugin then. Do you have it already scheduled?

Also, shall I keep the issue open? Or do I close it? Since the working solution is already provided.

from hms-flutter-plugin.

serdar-can avatar serdar-can commented on May 26, 2024

We couldn't schedule the next release yet, but please follow the pub.dev for the latest releases.

from hms-flutter-plugin.

Related Issues (20)

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.