Topic: iOS Crash after opening OnlineMaps
My team has isolated that the OnlineMaps script is somehow causing our app to crash when closing the app after opening a map.
Steps:
1. Launch an app on iOS
2. Activate a game object with the OnlineMaps script. This can be closed or left open.
3. Close the app (for us, this means backgrounding and closing the app)
4. A native iOS popup displays saying that the app has crashed.
The stakes for this might seem low as the crash is happening as the user is closing the app anyway, but obviously this would be a terrible user experience.
We were able to isolate the OnlineMaps script as the culprit through a painstaking process of disabling/removing all of the components on our map prefab and rebuilding the app. The only component change that resulted in different behavior was removing the OnlineMaps script from the prefab.
In our implementation, we are using the GameObject.SetActive() method to display our map prefab and hide it. We are not destroying/recreating the object when we hide/display it again. It seems that there is something that is set or turned on in the OnlineMaps script that does not get destroyed or reset properly on application quit on iOS.
This is as much information as we know to include with this for now. Any information or things we can test would be appreciated.
version: 3.7.11.1
unity: 2020.3.9fd1