Can PhoneGap be used in apps built with theos?

∥☆過路亽.° 提交于 2019-12-06 06:24:19

I've never done this, but YES it should be entirely possible. The Xcode instructions set it up for you to have a specific template with all of the phonegap files already in the proper locations. So it's easy to get going. But it doesn't do anything else that is particularly special. Theoretically you could simply setup all of the files in a theos project.

To do this you will need to 'reconstruct' exactly what goes into a phonegap template. I have no experience with theos, but a rough idea of what you will need to be able to do includes the following:

  1. Import PhoneGap.framework
  2. Reconstruct AppDelegate code
  3. Import Supporting Files (PhoneGap.plist)
  4. Additionally you will need to configure the folder structure with the www folder (that the webview loads from) including the index.html file and the phonegap-1.0.0.js file.

So yes, it should be possible. Let me know if you are successful. Good luck!

Yes. Just make it an IPA file and follow the instructions here.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!