matanshukry / flutter_google_places_sdk

Flutter plugin for google places native sdk
32 stars 68 forks source link

Crash on iOS #7

Closed bw-flagship closed 2 years ago

bw-flagship commented 2 years ago

Thanks a lot for this awesome plugin! Sadly i get a crash on iOS when I try to get autocomplete predictions. The app immediately shuts down. I made sure that the key works, this cannot be the problem. Do you have any idea? Thanks!

Output: Could not cast value of type 'NSNull' (0x2013b71a8) to 'NSNumber' (0x2013b78b8).

bw-flagship commented 2 years ago

i just figured out that this occurs if newSessionToken is not provided. If i set newSessionToken to true or false, it works.

ZacharyHandshoe commented 2 years ago

Hello, I have a similar issue, are you using firebase and/or firestore by any chance? I have conflicting dependencies currently causing these issues.

bw-flagship commented 2 years ago

@ZacharyHandshoe my issue had nothing to do with dependencies, I could reproduce it with a minimal sample

matanshukry commented 2 years ago

Fixed in version 0.3.1: https://pub.dev/packages/flutter_google_places_sdk/versions/0.3.1