ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚑️
https://capacitorjs.com
MIT License
12k stars 998 forks source link

[Bug]: @capacitor/google-maps "Error calling method create on plugin CapacitorGoogleMaps: No method found." on iOS #7533

Closed juanpe1103 closed 2 months ago

juanpe1103 commented 3 months ago

Capacitor Version

πŸ’Š Capacitor Doctor πŸ’Š

Latest Dependencies:

@capacitor/cli: 6.1.0 @capacitor/core: 6.1.0 @capacitor/android: 6.1.0 @capacitor/ios: 6.1.0

Installed Dependencies:

@capacitor/cli: 5.7.6 @capacitor/android: 5.7.6 @capacitor/ios: 5.6.0 @capacitor/core: 5.7.6

Other API Details

npm 10.7.0
node v20.14.0
pod 1.15.2

Platforms Affected

Current Behavior

(In browser safari, its working fine) When running the app from Xcode on a physical iPhone or in the emultator, I get the following error:

⚑️ To Native -> CapacitorGoogleMaps create 20086726 ⚑️ Error calling method create on plugin CapacitorGoogleMaps: No method found. ⚑️ Ensure plugin method exists and uses @objc in its declaration, and has been defined

Expected Behavior

No error, map renders

Project Reproduction

<capacitor-google-maps #mapRef></capacitor-google-maps>

import {GoogleMap} from '@capacitor/google-maps';

@ViewChild('mapRef', {static: true}) mapRef: ElementRef;
  newMap: GoogleMap;

   this.newMap = await GoogleMap.create({
      id: 'capacitor-google-maps',
      element: this.mapRef.nativeElement,
      apiKey: environment.keys.googleMaps,
      config: {
        center: center,
        zoom: 13,
      },
    });

ADDITIONAL INFORMATION: It is the final step for finish the final project of my engineering career :)

ionitron-bot[bot] commented 3 months ago

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron πŸ’™

juanpe1103 commented 3 months ago

Hello! Can someone help me with this please? I tried serveral solutions I founded in internet @jcesarmobile

ionitron-bot[bot] commented 3 months ago

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron πŸ’™

Ionitron commented 2 months ago

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day! Ionitron πŸ’™

ionitron-bot[bot] commented 1 month ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.