ons-tabbar is incorrectly shown if android cordova application is started in the background and then resumed: getActiveTabIndex returns the correct tab but the first tab is displayed always, even if it is hidden.
Code: https://codepen.io/reepeg/pen/wmNqYX
To reproduce the fault modify MainActivity.java to start the application in background (the real app is started by a broadcast receiver with cdvStartInBackground=true).
Use case: after device boot app is started in background to fetch some data from a server. Depending on the data different pages shall be shown to the user later.
onsen ui 2.9.2
cordova 8.0.0
cordova android 7.0.0
android API 21