I have a Cordova project on iOS and I want to switch to a specific tab following an event 'X'.
Assuming event 'X' just occurred, my objective C makes the following call to run a JS function `openNotificationTab()` like so:
The `openNotificationTab()` function resides in filename.js and I verified it is within scope and accessible by testing with an `alert()`.
NSString *goToNotification = [NSString stringWithFormat:@"openNotificationTab()"];
Now the definition for my js function is as follows:
The problem is that this function opens the correct panel, but overlays it on top of everything else. So the entire tab menu is no longer visibile and thus inaccessible.
I also tried
but neither does anything. Thanks for your help.
"Ext.Viewport.setActiveItem(1)" and "Ext.Viewport.setActiveItem('notificationtabview')"