Can phonegap just display my mobile website in an embedded browser?

前端 未结 4 880
夕颜
夕颜 2021-01-31 04:58

I have a website built in django, its responsive so works from 320px to 960px.

I\'ve noticed when i tell people the first thing they do is go to their native app-stores

相关标签:
4条回答
  • 2021-01-31 05:08

    This depends: Apple won't let you upload an app where the UI has to be loaded from a remote server.

    So for the app store you need to have some presentation logic on the client.

    In general: If you don't use a local html file you won't be able to use phonegap functionality (like the camera), but your "app" should run fine if you whitelist your server. But this app won`t be a first class citizen because you always have to online and you will feel a slow connection in the responsiveness of your "app".

    0 讨论(0)
  • 2021-01-31 05:13

    If you just want to make an android app from your website,then try
    http://www.appsgeyser.com/

    If you want to do this in phonegap,then copy the website files into assets folder of your phonegap project and build.

    0 讨论(0)
  • 2021-01-31 05:17

    You can do it - whether or not Apple will let you do it is up for debate...

    This blog post details 3 different approaches to building an app that wraps a website:

    • Option 1 - Package your website inside the app
    • Option 2 - launch your external website inside the app
    • Option 3 - launch your external website but fail back to local version

    and as an additional note, you can access plugins that are installed in your app (e.g. geolocation) while on the external site... if the external site is in your whitelisted sites list).

    0 讨论(0)
  • 2021-01-31 05:34

    Yes, you have to:

    1. go to https://build.phonegap.com/
    2. create an account
    3. upload the source files of your mobile website and make an app

    Note: make sure hydration is off!

    0 讨论(0)
提交回复
热议问题