ionic-team / ionic-team/capacitor-google-maps

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

Open
#128 5 comments 3 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
32
Forks
47
PR merge metrics
No merged PRs in 30d

Description

## 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](https://github.com/ionic-team/capacitor-plugins/files/15403946/code.zip)

0. npm install && capacitor add ios
1. add API KEY to component `src/app/explore-container/explore-container.component.ts`: `const apiKey = 'xxx';`
2. build an app to IOS
3. run on the emulator in IOS = 17.5
4. 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.