You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/26 19:14:39 UTC

[GitHub] [cordova-plugin-statusbar] XxAdi101xX edited a comment on issue #112: how to get statusbar height

XxAdi101xX edited a comment on issue #112: how to get statusbar height
URL: https://github.com/apache/cordova-plugin-statusbar/issues/112#issuecomment-476805656
 
 
   The `env(safe-area-inset-top)` does not work with android. With more and more notched android phones coming out, it makes sense that the statusbar plugin does actually provide the height of the statusbar. At my company, we require the statusbar height to deal with our app styles when we overlay our application with the status bar but are unable to get statusbar height for android devices since the env variables only works for iOS. There seems to be no other solution other than creating a cordova plugin to get this using the `getInset` function from the application window natively. I am currently working on a pr to add this functionality since I need to make the change for our company's application locally and can see how this can be helpful for others who face this issue.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org