App crashes on fetching a collection which contains field as 'Reference Type' #617
Labels
android
Relates to Android platform
bug
Something isn't working properly
Firestore
Related to Firebase Firestore Realtime Database
ios
relates to iOS platform
runtime issue
An issue related to app runtime
Bug report
Current behavior:
When trying to fetch documents(containing 'ReferenceType' fields) using the fetchFirestoreCollection() method, app crashes. The logcat shows StackOverflow error on trying to convert the object from gson.toJson() line
Expected behavior:
Either the Document Reference should be fetched from the firebase in circular fashion or the reference path has to be sent to the app
Steps to reproduce:
In firebase Firestore database, create a new document with a reference type field. Fetch the document using the fetchFirestoreCollection() method
Screenshots
Example reference field in a firestore document
Environment information
Ionic:
Ionic CLI : 6.13.1 (C:\Users\venkat\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.5.5
@angular-devkit/build-angular : 0.1100.7
@angular-devkit/schematics : 11.0.7
@angular/cli : 11.0.7
@ionic/angular-toolkit : 3.1.0
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)
Utility:
cordova-res : 0.15.3
native-run : 1.3.0
System:
Android SDK Tools : 26.1.1 (C:\Users\venkat\AppData\Local\Android\Sdk)
NodeJS : v14.15.5 (C:\Program Files\nodejs\node.exe)
npm : 6.14.11
OS : Windows 10
Runtime issue
Related code:
Code used to fetch the collection
Console output
console output
Other information:
The same collection works without the reference field. It crashes only when the reference field is added.
Thanks in advance.
The text was updated successfully, but these errors were encountered: