-
Notifications
You must be signed in to change notification settings - Fork 156
Xamarin.iOS.Google.Places - Unrecognised selector sent to instance #530
Comments
Hey Chris, Great explanation! You're right the definition for that ObjC function call has changed, - (void)findAutocompletePredictionsFromQuery:(NSString *)query
filter:(nullable GMSAutocompleteFilter *)filter
sessionToken:(nullable GMSAutocompleteSessionToken *)sessionToken
callback:(GMSAutocompletePredictionsCallback)callback; I think this should also include the removal of |
Thanks for the quick reply, is there a time frame for this fix to be pushed out to Nuget package? |
Unfortunately no, I'm happy to make a PR, but I don't know what the plans are for this project. With all the binding changes in the latest version and the large gap between releases there are a few errors that have been introduced. I'm happy to help out, but this really requires dedicated resources from Microsoft, with a proper testing method, maybe a pre-release channel & multiple eyes to look over binding changes. |
Yeah this would be good to get fixed also or if anyone else has found an alternative |
Hi team, |
Hi, I have upgraded to the latest packages for:
And am receiving a native crash related to retrieving autocomplete results. The affected method is:
GoogleApisForiOSComponents/source/Google/Places/ApiDefinition.cs
Line 751 in 0b83095
Invoking this will result in:
Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[GMSPlacesClient findAutocompletePredictionsFromQuery:bounds:boundsMode:filter:sessionToken:callback:]: unrecognized selector sent to instance.
I believe this caused by changes in the Google Places library and the bindings have not been updated.
The method was deprecated in version 4.0: https://cloud.google.com/blog/products/maps-platform/announcing-version-40-maps-and-places-sdks-ios
The method was changed from:
findAutocompletePredictionsFromQuery:bounds:boundsMode:filter:sessionToken:callback
To:
findAutocompletePredictionsFromQuery:filter:sessionToken:callback
I have created a sample project that reproduces it: https://github.com/ckomo/xamarin_google_places_crash
Thanks for looking into this, hopefully I have included enough information.
-Chris
The text was updated successfully, but these errors were encountered: