Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Owner and Founder. Opencart
Top Partners
Instead of hard coding, Google maps API key in AndroidManifest.xml and AppDelegate.swift. We can change the Google Maps key dynamically anytime.
We can store the Google Maps key on the server and can get using the rest API. Map key can change the key at runtime after getting from the server.
We have to add a key at run time in native code AndroidManifest.xml and AppDelegate.swift. Flutter provides a way to communicate with native code through the Flutter platform channel.
Let’s check implementation at Fluter’s Dart code end.
Let’s check implementation at Native Android end.
We have to add meta data in AndroidManifest.xml.
Receive Google Maps API key from Flutter Channel.
Let’s check implementation at Native IOS end.
I hope this blog will help to set Google Map API key dynamically.
Happy Learning 🙂
Reference Links:
https://mobikul.com/flutter-platform-channel/
https://flutter.dev/docs/development/platform-integration/platform-channels
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Not the best tutorial, not even tested (see last point). But unfortunately the only one that explains both platforms.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
We've bought a Shopware Extension which is a hybrid App, which we can now offer in the Google Play Store and the IOS App Store. I'am still impressed how fast and how sharp the support team leads us through every process of the App-Store clarification. Very fast and useful response.
Markus Walter
Founder, Das Apartment Living
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.