Assigned
Status Update
Comments
ma...@google.com <ma...@google.com> #2
Thank you for waiting.
We have verified and logged this issue internally. Please note that we cannot give you any timelines, but you can star the issue to get notifications.
Description
What is the incorrect behavior that you are experiencing? After installing an app for the first time, if you tap on the Google logo or any custom button that opens the installed Google Maps app. Xcode reports several errors related to "App Groups".
2021-05-10 16:07:18.437249-0400 MapTest2[9109:1860098] [unspecified] container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled 2021-05-10 16:07:18.439 MapTest2[9109/0x16e1bf000] [lvl=3] -[GMSx_GIPPseudonymousIDStore initializeStorage] Shared App Groups unavailable 2021-05-10 16:07:20.655312-0400 MapTest2[9109:1860243] [unspecified] container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled 2021-05-10 16:07:20.656 MapTest2[9109/0x16e01b000] [lvl=3] -[GMSx_GIPPseudonymousIDStore initializeStorage] Shared App Groups unavailable
If the request was to begin directions from point to point, the bottom area of the Google Maps area will contain a loading spinner that never stops. If the app is closed, and then opened again, when the same steps are made, there are no errors and everything works normally.
I have tested with just URL scheme for directions in an empty project (no maps SDK) and it works normally. The issue only arises when the URL open request originates from an app with the SDK installed. Adding the app groups capability/entitlements does not have any effect.
Steps to reproduce the problem:
1. Create a new project in Xcode.
2. Add SDK 4.2.0 via pods and open the new project.
3. Add the URL schemes to info.plist:.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>googlechromes</string>
<string>comgooglemapsurl</string>
<string>comgooglemaps</string>
<string>comgooglemaps-x-callback://</string>
</array>
4.Run the app and once the map is loaded, tap on the google icon to open Google maps.
5. Errors will be shown in the console.
6. Close app
7. re-open app and repeat step 4, no more errors.
8. remove app from device.
9. add a button to viewcontroller to open URL "comgooglemaps://?saddr=&daddr=" (use your own start and end as desired).
10. install and run app, once the amp is loaded, use the button to start the directions process.
11. Observe errors in console and endless loading in Google app.
Operating system version: iOS 14.4 Xcode 12.4
Google Maps SDK for iOS version: 4.2.0
Hardware model: iPhone XR
-------------------------------------------------------------------
[1] You can fork