-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Bug] RangeError (index): Invalid value: Valid value range is empty: 0 #41
Comments
getting the same error flutter 3.7.11 |
bumping this @fbenevides |
Getting the same error, it looks that if the auth succeed the platform handles it incorrectly at the callback handling. I believe the reason for this error is this code:
for setUserId when there is no error there is an attempt to access args[0] in callback(args[0] as String?) but the args are empty so we get Array range error.
|
Should be a simple enough fix, perhaps if the main devs don't have time to implement it, someone could open a PR to fix it? |
Hi, I'd like to merge #44, but I'd also like to reproduce the original issue. When I call setUserId(), it authorizes fine for me without throwing RangeError. I'm testing on Android however, are you using iOS or web browser target? |
@benjamin-tang-pusher I'm using iOS, it seems to be the only platform affected (to my knowledge, I've tested android and iOS, but not web). |
@benjamin-tang-pusher I was testing this on iOS simulator and real iOS device like half year ago and this Error occurs only on iOS (I've also tested android and everything worked fine). |
Just run into this today, still an issue on iOS using simulator or real device. The |
When I use the following method:
Everything works as expected - the notifications are consistently received. However, an error appears in the console:
I have attempted to find a solution, but it seems to be an issue with the library itself.
The text was updated successfully, but these errors were encountered: