How to disable PhoneGap APIs/functionality?

后端 未结 2 638
轮回少年
轮回少年 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条回答
  •  Happy的楠姐
    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.

提交回复
热议问题