adriancarriger / angularfire2-offline

🔌 A simple wrapper for AngularFire2 to read and write to Firebase while offline, even after a complete refresh.
https://angularfire2-offline.firebaseapp.com/
MIT License
207 stars 48 forks source link

Navigation issues when offline #77

Open myrsk opened 7 years ago

myrsk commented 7 years ago

After adding angularfire2-offline to my ionic project, and I put my phone on airplane mode, if I click on an picture that takes me to a different page, I have to click it twice.

After clicking the item twice, if I go back, I also see the same page that I was taken to twice.

Hence, I have to go back twice to reach root page.

Tried to search all over, but to no avail.

All the features are working fine, even when I used angularfire2 on its own, it was fine too and didn't have this issue of double pages or double clicks.

On latest version of everything ionic, angular, firebase, and angularfire2-offline

Your help is appreciated.

myrsk commented 7 years ago

Using this code to navigate to pages.

openList(categoryId){
      console.log("openList");
      this.navCtrl.push('List1Page',{categoryId:categoryId});
  }

After further testing ... if i click on an image and it still doesnt go to the respective page, I had to click it again, which adds it to the stack in navctrl.

However, if I keep clicking other images as well, each one separately, it will add each to the stack. So finally, when I click on the same one twice -> I have to go back like 3-4 times to get back to root depending on the amount of ones I clicked.