流星科尔多瓦:如何添加权限?

问题描述 投票:2回答:2

我创建meteor移动应用程序,并且还增加了

 meteor-config.js

新增splash屏幕,icons,etc.But如何添加这些权限在我的流星应用像GeoLocationsmsRead Contactstake picturevideos等。

javascript cordova meteor phonegap-plugins
2个回答
1
投票

包括在移动config.js如下相机插件的详细信息。

App.configurePlugin('cordova-plugin-camera', {
   'CAMERA_USAGE_DESCRIPTION': 'To take photos'
});

如果没有针对插件所需的任何变量,然后给那些为键 - 值对。

同样包括其他插件太多。

请参阅https://guide.meteor.com/mobile.html#installing-plugins

http://docs.meteor.com/api/mobile-config.html


0
投票

通过@vbharath建议对我来说没有工作答案(流星1.8)。用于照相机插件我已经通过使用plugin docsApp.appendConfig)用于从details here溶液:

App.appendToConfig(`
<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
    <string>Need camera access to take pictures</string>
</edit-config>

<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
    <string>Need photo library acess to upload images from galery</string>
</edit-config>
`)
© www.soinside.com 2019 - 2024. All rights reserved.