问题
I have a phonegap application which starts as a normal application (not in full screen mode). I need to provide a user option to enable fullscreen in my html. How can I make my application to be in full screen on button click through javascript or Phonegap utils?
回答1:
You have to write a PhoneGap plugin that calls the native functionality to switch to full screen (e.g. like this for iOS).
来源:https://stackoverflow.com/questions/15757363/phonegap-application-fullscreen-through-a-button-in-html-page