Is PhoneGap on iOS hard coded to load www/index.html?

前端 未结 4 534
花落未央
花落未央 2021-02-06 06:30

On PhoneGap on Android you can modify the App.java class to load any url. I can\'t find anywhere to change the entry point on the iOS version.

When testing I prefer to h

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-06 06:48

    You could do this:

    Create the default index.html and have it wrap and load your own html root file, that way you can keep your own directory structure and no need to do any modifications there.

    Of course, phonegap is open source, so you could also commit a change to phonegap to change the iOS api similar to Android API. Currently it seems the root html file path is determined in class PhoneGapDelegate.m

提交回复
热议问题