GitHub Issue | n/a |
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-04-17T23:57:45.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.1.2 |
Fix Version/s | 2014 Sprint 08, 2014 Sprint 08 SDK, Release 3.3.0 |
Components | Android |
Labels | module_window, qe-closed-3.3.0, qe-testadded, supportTeam |
Reporter | Rupesh Sharma |
Assignee | Vishal Duggal |
Created | 2013-09-20T11:15:59.000+0000 |
Updated | 2014-07-08T21:55:06.000+0000 |
Description
Currently Titanium doesn't support setting the flags on window. This is possible in native Android SDK when we add flags in the onCreate method of the window object.
Android Native Example
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
This is basically required to show the message screen over the lock-screen. When a message is send to the app the message window should be shown even if the phone's screen is locked.
For reference:
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html
Yes!! This is basically required!!!! Is there any good new?
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/5602
Test Case
Verified the issue with environment: Appc-Studio:3.3.0.201404211130 sdk:3.3.0.v20140423155715 acs:1.0.14 alloy:1.4.0-dev npm:1.3.2 titanium:3.3.0-dev titanium-code-processor:1.1.1-beta1 xCODE:5.1.1 Device:Iphone5(7.1),Nexus7(v4.4.2) Working fine on android Window fullscreen flag. Hence closing the issue