Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
tabbar issue when app is started in background
-
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