IonNav.canGoBack() sometimes throws exception: "Cannot read property 'apply' of undefined"

Related github issue: https://github.com/ionic-team/ionic/issues/20721

I was wondering if anyone here ever experienced the same issue? (more info in github issue)

Basically what happens is that the user receives a notification (while app is in foreground) and then he sends the app to background. After waiting for like 10-30mins he clicks on the notification (while the app is still in background; so not a cold start). By clicking on the notification we check whether we need to pop any existing view before showing the new one with await this.chatRoomNavService.nav.canGoBack() . This produces the following exception: vendor-es2015.js: Line 52957 : ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'apply' of undefined