Skip to content
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

feat: Enable configuration of offline mode on all platforms #715

Open
3 of 13 tasks
morzel85 opened this issue Sep 10, 2024 · 0 comments
Open
3 of 13 tasks

feat: Enable configuration of offline mode on all platforms #715

morzel85 opened this issue Sep 10, 2024 · 0 comments

Comments

@morzel85
Copy link

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Functions
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Current problem

Currently offline document read is not supported on Web platform. Executing this code:

const { snapshot } = await FirebaseFirestore.getDocument({
  reference: 'someDocPathHere',
});

Gives such error: "FirebaseError: Failed to get document because the client is offline"

Preferred solution

capacitor-firebase should expose configuration for enabling/disabling offline mode on all platforms where Firestore itself can support it.

Alternative options

No response

Additional context

#713

Before submitting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants