Skip to content

Forgetting to register plugins in add-to-app causes confusing error PlatformException(unregistered_view_type, trying to create a view with an unregistered type, unregistered view type: 'plugins.flutter.io/google_maps', null) #100241

@nikhilbhawsar

Description

@nikhilbhawsar

Currently we are seeing issue with integrating flutter in our existing iOS project.
We are following document from here
When we are calling flutterViewController (in main.dart file we have added our code for showing Googlemaps), it is just showing an empty view.
I have tested the same via Runner.xcworkspace project and there it is working fine, there we are able to see map properly.

I just want to understand is there any bug associated with integrating flutter as module using Pods.

Adding the sample project.
maps.zip

Steps to get this project running.

Steps to Reproduce

  1. Download the sample project
  2. navigate to maps/flutter/product_flutter directory
  3. run flutter clean followed by flutter pub get
  4. move to main directory maps
  5. now perform pod install
  6. update the API key in AppDelegate.swift file
  7. run the app and click on the center button
  8. it should launch flutter view, having white screen.

Expected results:

Actual results:

Code sample
Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: existing-appsIntegration with existing apps via the add-to-app flowengineflutter/engine related. See also e: labels.found in release: 2.11Found to occur in 2.11found in release: 2.13Found to occur in 2.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions