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

bug: Invalid serialization of DocumentReference Java objects #818

Open
5 of 17 tasks
gre-v-el opened this issue Feb 7, 2025 · 1 comment
Open
5 of 17 tasks

bug: Invalid serialization of DocumentReference Java objects #818

gre-v-el opened this issue Feb 7, 2025 · 1 comment
Labels

Comments

@gre-v-el
Copy link

gre-v-el commented Feb 7, 2025

Plugin(s)

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

Version

7.0.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

Invalid serialization of DocumentReferences: when retrieving a document which contains references to other documents, the returned JSON object contains strings like "com.google.firebase.firestore.DocumentReference@d2335ee5" instead of valid reference paths.

Expected behavior

The JSON serialization should produce a valid firestore reference.

Reproduction

Steps to reproduce

let someDocument = await FirebaseFirestore.getDocument({reference: `some/reference`});
let someData = someDocument.snapshot.data;
console.log(someData.someReference);
// what is logged: "com.google.firebase.firestore.DocumentReference@d2335ee5"
// what should be logged: `some/anotherreference`

Other information

No response

Capacitor doctor

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/android: 7.0.1
  @capacitor/ios: 7.0.1

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/android: 7.0.1

[success] Android looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@gre-v-el gre-v-el added bug/fix Something isn't working needs: triage labels Feb 7, 2025
@gre-v-el gre-v-el changed the title bug: bug: Invalid serialization of DocumentReference Java objects Feb 7, 2025
@robingenz
Copy link
Member

Thank you for reporting that. Would you be willing to create a PR?

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

No branches or pull requests

2 participants