-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(android) Added option to turn on/off fullscreen mode in Android #634
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your PR. Could you please revert all the version changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quickly tested this with my Android device, changes work as expected.
Hello, I test this pull from my android studio emulator , but inappbrowser still in full screen mode !!! I am using could you please tell me how to check this to make inappbrowser without full screen ? |
Exactly like you, with the |
@timbru31 i am using the master version of inappbrowser plugin and i fork it and modify android code to using this for fullscreen But inappbrowser still in full screen mode (The master version of inappbrowser still not merged with this pull) |
Yeah you've need to install the plugin from the forked repo: |
Yes i install the plugin from forked repo as you mentioned But the problem still in full screen. (Status bar hidden) Did you see the inappbrowser with status bar (not in full screen) If yes Thanks |
I set the option fullscreen to no |
I will check again Regards |
Can you please remove the plugins and platforms folder and re-add the Android platform |
I will try to remove platform and plugins folders and i will tell you if it work Thanks |
Did it work for you? @mosabab |
Thanks for asking, and sorry for late response. EXACTLY: THANKS AGAIN WORK AS EXPECTED. What to do: 1- I remove the platform. 2- delete plugin folder 3- delete package.json file 4- add platform again. Thanks |
Great, thanks for testing this. PR merged, thanks @PDLMobileApps for your contribution! |
* master: docs: replaces outdated transition and presentation style links (apache#662) chore: remove deprecated orientation methods (apache#666) Fix incorrect TypeScript typings (apache#515) [apacheGH-652] add check for openInSystem postNotification (apache#654) ci: updates Node.js versions (apache#659) chore(npm): improve ignore list (apache#658) fix(android): Reset lefttoright if not set (apache#442) [android] Correcting the documentation regarding lefttoright opt… (apache#648) (android) Added option to turn on/off fullscreen mode in Android (apache#634) Android apacheGH-470 InAppBrowser: java.lang.IllegalArgumentException (apache#616) breaking(ios): remove UIWebView (apache#635) chore(release): 3.2.1-dev
…che#634) * (android) Added option to turn on/off fullscreen mode in Android * (android) Reverted version changes as requested * (android) Changing default option value to enabled as per request Co-authored-by: Alessandro Basso <[email protected]>
ionic 3 fullscreen=no is not working i am getting Type '"no"' is not assignable to type '"yes"'. inappbrowser version :- 3.2.0 |
You should use the master version |
@mosabab what do you mean use the master version? |
Master version mean the current and development version of the plugin. So, you can choose the master version in your config.xml like so
Where #master is the main and current version of the development. #3.2.0 is the latest version without merged with fullscreen=no. So this feature not created when the latest version released. Also, any new features could be found in the development version which is #master Hope those information help! Regards |
@mosabab It certainly did help, I was actually using ionic so I had to remove the plugin which was already installed
and then reinstall from the specific branch
and it worked thank you! |
Really i don't know the eaxtct time. You can always keep updated from github notifications by email in your profile settings to check about new versions for this plugin or by visit the plugin page daily. Regards |
Hi, that's great. But now the statusbar is just black background. WOuld have a way to change the background or set to be light bg/dark content? I already tried StatusBar plugin but is not working... |
What is the version of this plugin you used? Do you use v4.0.0 ? |
Yup, I'm on latest. I even installed from master to make sure.
but other than that, I'm not using anything else that could affect the status bar. I do not use the statusbar plugin. I'm trying to find the issues, but I am definitely lost a bit :) |
it just colours black status bar..I change to blue, but this mode sets it to black |
Yes the background is always black even if you set to other colors, maybe someone with experience with java code can modify it to use custom colors instead of only black. |
Platforms affected
Android
Motivation and Context
Resolves #598 #526 #469
Link to the issue: #598
Description
This PR adds a new Android option to fix bug #598
The new option (fullscreen - yes/no) enables/disables the fullscreen WebView on Android. The default value is no.
Testing
Testing was done manually as I am not sure on how to automate it.
cordova.InAppBrowser.open(url, "_blank", "");
and verified the WebView is not opening in fullscreen mode.
cordova.InAppBrowser.open(url, "_blank", "fullscreen=no");
and verified the WebView is not opening in fullscreen mode.
cordova.InAppBrowser.open(url, "_blank", "fullscreen=yes");
and verified the WebView is opening in fullscreen mode.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)