-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed as duplicate
Closed as duplicate
Copy link
Description
Description
When using Firebase iOS SDK with Flutter, all Firebase services become unavailable after approximately 1 hour of usage. This appears to be a token refresh issue, as it occurs around the default token expiration time.
Related Issues
- 🐛 [cloud_firestore] ava.lang.RuntimeException: Internal error in Cloud Firestore (24.6.0). #11087
- chore(release): prepare for release #9989
- [App Check] Set
limited_use
request param for App Attest firebase-ios-sdk#11544
Environment
- Flutter version: 3.27.3
- firebase_core: ^3.10.1
- firebase_auth: ^5.4.1
- Other Firebase packages listed in Flutter issue
Issue Details
The token refresh mechanism appears to fail after the initial token expires (~1 hour), causing all Firebase services to become unavailable. This includes:
- Authentication
- Firestore
- Cloud Functions
Error Messages
Multiple error types are encountered depending on the service being accessed:
PlatformException(unavailable, The service is currently unavailable...)
PlatformException(unknown, Unknown error or an error from a different error domain...)
PlatformException(internal-error, An internal error has occurred...)
Questions
- Is there a known issue with token refresh when integrated with Flutter?
- Are there specific iOS background task settings required for token refresh?
- Is there a way to debug the token refresh process?
Metadata
Metadata
Assignees
Labels
No labels