2016-12-27 48 views
2

我創建meteor移動應用程序,並且還增加了Meteor-Cordova:如何添加權限?

meteor-config.js 

新增splash屏幕,icons,etc.But 如何添加這些權限在我的流星應用GeoLocationsmsRead Contactstake picturevideos等。

回答

1

在mobile-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

您正在使用流星添加科爾多瓦添加插件:[email protected]同樣使用插件ID「科爾多瓦 - 插件相機」在App.configurePlugin我已經在上面指定。其他插件也一樣。 – vbharath