I’m working on a situation where users first land on a login page and then authenticate via the Ionic Native Facebook module. When I test this out in an ios emulator, I am able to run the Facebook login method and get a successful response. However, within the promise that is returned from the login method, I try to navigate to the TabsPage and nothing happens.
Usage Example:
Facebook.login(['public_profile']).then(res => {
console.log(res) //Facebook response
this.nav.push(TabsPage); //Nothing happens
}, error => console.log(error));
I have tried navigating to a different page instead of the TabsPage and that does work. I have also tried replacing the content inside of tabs.html file and have isolated the issue to be related to the <ion-tabs>
directive. Does anyone have any ideas on what may be causing this unexpected behavior?
Thanks
Your system information:
Cordova CLI: 6.1.1
Gulp version: CLI version 1.2.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.9.1
Xcode version: Xcode 7.3 Build version 7D175