Menu

Our app asks for one permission, and the 23-word sentence under it is a promise the code has to keep
📰

Our app asks for one permission, and the 23-word sentence under it is a promise the code has to keep

DEV Community: mobile·Daniel Pertu·about 22 hours ago
#Th6KmqMH
#devtomobile#devto#dev#camera#munchable
Reading 0:00
15s threshold

Munchable scans a barcode and tells you whether a product fits your gut. When it does not hold a product yet, you photograph the ingredients panel and it reads the label. So it needs the camera, and asking for the camera on Android and iOS means writing a sentence that the operating system shows to the user, once, at the moment they decide.

Ours is 23 words:

[ "expo-camera" , { "cameraPermission" : "Munchable uses your camera to scan barcodes and photograph ingredient labels. Photos are used only to read the label and are never stored." , "microphonePermission" : false , "recordAudioAndroid" : false } ]

Enter fullscreen mode

Exit fullscreen mode

That is the whole of app.json 's camera configuration, and the second sentence is not a description of the feature.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.