How to disable PhoneGap APIs/functionality?

后端 未结 2 617
轮回少年
轮回少年 2021-01-27 09:43

Is there a recommended way to remove access to unneeded PhoneGap APIs?

For example our app does not need to access the contact database.

With normal web pages, a

相关标签:
2条回答
  • 2021-01-27 10:16

    In your app, under PhoneGap.plist/Plugins, remove any rows for plugins that are not needed - this will remove access from JavaScript.

    0 讨论(0)
  • 2021-01-27 10:26

    PhoneGap is Open Source. You could make your own copies of the PhoneGap.js files with those functions disabled (put return false; as the first line of the function or something).

    On Android you can do it with the permissions in the AndroidManifest.xml file, but as far as I know, there is not such feature for iOS.

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