Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Test Device: Google nexus5
Cordova-android 4.1
Description
Test Steps:
1.cordova create statusbar com.example.statusbar statusbar
2.cordova platform add android
3.config.xml-----add:
<preference name="Fullscreen" value="true" /> <preference name="disableImmersive" value="true" />
4.replace index.html:
<script src="./cordova.js"></script> <div id="header"> <h3 id="main_page_title">Status Bar Test In Fullscreen</h3> </div>\n<br><br> <p>Click "Status Bar Show" button to show status bar:</p> <button onclick="StatusBar.show();">Status Bar Show</button><br><br> <p>Click "Status Bar Hide" button to hide status bar:</p> <button onclick="StatusBar.hide();">Status Bar Hide</button>
5. cordova plugin add cordova-plugin-statusbar.
6. cordova build android.
7.Then install statusbar.apk on the test device.
8.click "status Bar show/hide" button.
Expected Outcome:
Status Bar can show or hide.
Actual Outcome:
have no response.
Issue Analysis:
this issue only happen on Cordova Android 4.1 and Cordova CLI 5.2.If use Cordova CLI 5.1,apk can run successfully.
error log:
V/StatusBar( 4028): Executing action: show
D/audio_hw_primary( 184): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
W/InputMethodManagerService( 753): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@432d6328 attribute=null, token = android.os.BinderProxy@42f61a70