-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on iOS calling GMSMapView.mapWithFrameCamera #3
Comments
Hi, Yes please create a sample project to investigate this |
Just adding the additional plugins didn't recreate the problem in the test project. I thought I'd try using the original Nativescript-google-maps-sdk plugin in my migrated project, but that required your replacement for map-view.ios.js. The crash still occurs, but the replacement code is so different from the original that it's hard to draw any conclusions. I've been blocked on this for over a week and am running out of options. |
I created this SO post to get more visibility and have posted the answer there. Net: my API key wasn't being specified. That's a good first thing to check if you're getting an immediate crash on iOS. |
Sorry for that .. normally the plugin throw a message about GMS need a valid key or some think like this |
Yes, I know, and that's why I was thrown off. I was playing with different options and tried |
This is a continuation of issue 2. While I was able to create an empty map using this plugin, when I added the otherwise empty map page into the app I'm migrating I was still getting a crash when navigating to that page. After many hours of debugging, I have isolated the crash to line 363 in index.ios.ts:
this.nativeView = GMSMapView.mapWithFrameCamera(CGRectZero, this._createCameraPosition());
The camera position is being created correctly. No error is thrown; the app just crashes with out any messages of any kind. It fails on both the current iOS runtime and JSC. The map page is loaded successfully on Android.
As a reference, here's the map-page.xml file in its entirety:
And my current package.json:
At this point I'm looking for any suggestion on what to try or how to debug further. Lacking anything else, I'll start adding the above plugins to a sample project to see if there's any conflicts.
The text was updated successfully, but these errors were encountered: