Skip to content

google-maps: plugin can not create map under IOS version > 17.2 #128

@ngmiduc

Description

@ngmiduc

Bug Report

Plugin(s)

"@capacitor/google-maps": "^5.4.1"

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

  @capacitor/cli: 5.0.4
  @capacitor/android: 5.0.4
  @capacitor/core: 5.7.0
  @capacitor/ios: 5.0.4

Platform(s)

IOS

Current Behavior

When the app is freshly installed on IOS 17.5, than the app crashes when the google map plugins create the map. After that the app can be sometimes opened again, after the app crashed. To reproduce this, delete the app again and install it again with xcode.

Expected Behavior

App should not crash after the app is lunched for the first time.

Code Reproduction

https://stackblitz.com/edit/angular-yz24zb-dbfvbk?file=src%2Fapp%2Fexample.component.ts

  1. add API KEY to component const apiKey = 'xxx';
  2. build an app to IOS
  3. run on the emulator in IOS = 17.5
  4. start up

Code Reproduction (alternative)

code.zip

  1. npm install && capacitor add ios
  2. add API KEY to component src/app/explore-container/explore-container.component.ts: const apiKey = 'xxx';
  3. build an app to IOS
  4. run on the emulator in IOS = 17.5
  5. start up

Other Technical Details

Reproduction code can be downloaded from stackblitz.
I run the emulator on M3 Mac chip and I have installed the google map utils IOS
We have received crash reports from ours users with IOS > 17.2.
I also have tried to use capacitor 6 with the version 6 plugin but the results are the same inside the ios emulators.

Screenshot:
Screenshot 2024-05-22 at 13 37 43
Screenshot 2024-05-22 at 13 38 32

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions