我创建meteor
移动应用程序,并且还增加了
meteor-config.js
新增splash
屏幕,icons
,etc.But如何添加这些权限在我的流星应用像GeoLocation
,sms
,Read Contacts
,take picture
和videos
等。
包括在移动config.js如下相机插件的详细信息。
App.configurePlugin('cordova-plugin-camera', {
'CAMERA_USAGE_DESCRIPTION': 'To take photos'
});
如果没有针对插件所需的任何变量,然后给那些为键 - 值对。
同样包括其他插件太多。
通过@vbharath建议对我来说没有工作答案(流星1.8)。用于照相机插件我已经通过使用plugin docs(App.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>
`)