Skip to content

IOS Background reopen: @firebase/firestore: Firestore (7.6.2): FIRESTORE (7.6.2) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: transaction@[native code] #2581

@Sroose

Description

@Sroose

Describe your environment

  • Operating System version: IOS 13.3
  • Browser version: Mobile Safari UI/WKWebView 13.3
  • Firebase SDK version: 7.6.2
  • Firebase Product: database (firestore)

Describe the problem

Steps to reproduce:

Ionic cordova app using Firestore. Works very well under normal situations.
When opening through notification and it's a cold app start, also no problems.
But only when the app is in the background and reopened through a notification tap, firebase will throw a lot of errors and stop working:

@firebase/firestore: Firestore (7.6.2): FIRESTORE (7.6.2) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: transaction@[native code]

Relevant Code:

(Cannot reproduce this on stackblitz as it is on device.)
Simplified use:

constructor(public storage: AngularFireStorage,
                public auth: AuthService,
                private afs: AngularFirestore,
                private fns: AngularFireFunctions) {
}

private loadData() {
...
this.itemList= this.afs.collection('users').doc(uid).collection<ItemList>('items').valueChanges({ idField: 'item' });
...
}
<ion-list *ngIf="itemList| async as item; else loadingOrError">

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions