Tabgroup Problem

You must Login before you can answer or comment on any questions.

I have two tab bar in my app.. One for logged in user and other for not looged in user. When user first time login second tab bar is opening correlcty, The problem occurs when i am creating a logout button and opening the earlier tab bar again. It crahes app in android. Please suggest the cause. Its working fine for iphone

— asked 2 years ago by Gaurav Sood
6 Comments
  • post your code ,it will help to identify your mistake

    — commented 2 years ago by Muhammad Adnan

  • Two Tab Goups //APP.mainTabGroupNotLogged; //APP.mainTabGroup; initially

    APP.mainTabGroupNotLogged.open();
    login.addEventListener('click',function(e) {
                    validateFields();
                APP.mainTabGroup.open(); // success
    });
    logout.addEventListener('click',function(e) {
                APP.mainTabGroup.close(); // crash  
                APP.mainTabGroupNotLogged.open(); // crash
    });
    login and logout are buttons

    — commented 2 years ago by Gaurav Sood

  • Hi, Gaurav can you confirm one thing.

    just close the main Tab group. i mean execute this code only:-

    logout.addEventListener('click',function(e) {
                APP.mainTabGroup.close(); 
    });
    does it still crashes the app?

    — commented 2 years ago by Ashish Nigam

  • Show 3 more comments

1 Answer

Your Answer

Think you can help? Login to answer this question!