🐛 [FirebaseAuth] cant get or set photoUrl on iOS
Bug report
Describe the bug FirebaseAuth photoUrl is always null on IOS devices.
I'm trying to use photoUrl with anonymous and password authorization. On android device can set and get correct values, on IOS photoUrl is always null even after is setted up on android.
Steps to reproduce
Steps to reproduce the behavior:
await FirebaseAuth.instance.currentUser!.updatePhotoURL("aa||bb||cc"); await FirebaseAuth.instance.currentUser!.reload(); print(FirebaseAuth.instance.currentUser); print(FirebaseAuth.instance.currentUser!.providerData);
This is only on ios, on android everything works as expected.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 3.7.3, on macOS 13.0.1 22A400 darwin-x64, locale en-BG)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.75.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
dependencies:
assets_audio_player: ^3.0.6
beep_player: ^0.0.1
cloud_firestore: ^4.3.1
firebase_auth: ^4.2.6
firebase_core: ^2.4.1
firebase_messaging: ^14.2.1
firebase_ui_firestore: ^1.2.3
flutter_colorpicker: ^1.0.3
flutter_local_notifications: ^13.0.0
flutter_speed_dial: ^6.2.0
flutter_svg: ^2.0.0+1
google_mobile_ads: ^2.3.0
intl: ^0.17.0
provider: ^6.0.5
random_color: 1.0.6-nullsafety
shared_preferences: ^2.0.17
uuid: ^3.0.7
vibration: ^1.7.5
Thanks for the report @yostrokon Using the code snippet provided, I am seeing same behavior as reported.
It works without issue on my end using this url.
@darshankawar Which url did you use to reproduce the issue?
@Lyokone I had tried with https://fastly.picsum.photos/id/9/250/250.jpg?hmac=tqDH5wEWHDN76mBIWEPzg1in6egMl49qZeguSaH9_VI taken from https://docs.flutter.dev/cookbook/images/network-image
From the url you shared, it is http and the one I tried above is https. Wondering if that's the case ?
It works without any issue with your picture too 🤔 Maybe it was a temporary bug from Firebase backend? Do you still reproduce @yostrokon ?
Hey @yostrokon. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@yostrokon if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.