Page 1 of 1

How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Fri Sep 18, 2015 8:14 pm
by mradhip ramesh

I am trying to incorporate something like facebook messenger chat head and I need to access system overlay. Is this possible in appery ?


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Fri Sep 18, 2015 8:55 pm
by Evgene Karachevtsev

Hello Mradhip,

Sorry, I'm not sure I understand you correctly, could you please elaborate your question with some screenshots?


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Fri Sep 18, 2015 11:12 pm
by mradhip ramesh

This is what I want to achieve:

  1. I need to open three websites inside my app(for eg: google.com, facebook.com, twitter.com). I need to keep the header and footer to be present even if I open the mentioned websites.

    I tried iframe way but could not open google.com, I tried inappbrowser way but the header and footer was missing.

    Need your help to achieve this.


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Sat Sep 19, 2015 6:25 am
by Illya Stepanov

Hi -

You can use HTML component for such cases, please also check the solution described in our documentation here: https://devcenter.appery.io/documenta...


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Sat Sep 19, 2015 8:41 am
by mradhip ramesh

I tried html component, but cannot open Google.com inside iframe. If I open inappbrowser, header and footer disappears. Please help


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Sat Sep 19, 2015 12:45 pm
by mradhip ramesh

Awaiting for your answer!


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Sat Sep 19, 2015 7:24 pm
by Evgene Karachevtsev

Hello!

Please try to test your app on a real device, html component should work correctly there.


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Sun Sep 20, 2015 5:25 am
by mradhip ramesh

I tried html component with iframe. It is giving x-origin error, hence could not open Google.com. I can open appery.up here but not Google.com, hope you get the issue now.


How do I keep my screen on top ? Is there anything similar to WindowManager.LayoutParams ?

Posted: Sun Sep 20, 2015 2:00 pm
by Evgene Karachevtsev

Unfortunately some sites prohibit to display their data this way. Apparently Google.com is among them now (it was working not long ago). You may look for the alternative of it and use some other search site. Or you may look for some phonegap/cordova plugin that would fit your needs.