cancel
Showing results for 
Search instead for 
Did you mean: 

Camera Access permission on Attachment Control

KrishnaReddy
Explorer
0 Kudos
189

Hello Experts,

When we attaching the photos(via camera or Photo library) it was asking for the permissions as shown attache image.

Could you please help how we can grant the permission by default with out asking user to provide access.

We know this is one time activity when we try to attach photo for first time.

if in case user by mistakenly denied the permission he won't be able to attach until he allow the permission via mobile settings.

to avoid this we are looking options to provide access to photo library/ camera by default.

Please advise on this further?

@bill_froelich  Please advise?

MDK : 24.4.1

Thanks,

Krishna

 

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert

One option would be to look at the @nativescript/camera module code.  They have a request permissions function that should give you guidance on how to check.  You may be able to simply include that plugin in a branded client and just use the permission functions they provide since it should be universal for the app.

KrishnaReddy
Explorer
0 Kudos

@bill_froelich when we use @nativescript/camera (added in BAS Bundler Externals ) getting below error

Screenshot 2024-06-18 at 10.11.15 AM.png

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
You can't just add it in externals. You need to create a branded MDK client and include it in the MDKProject.json accordingly. That error indicates the client you are running does not have the plugin installed.
KrishnaReddy
Explorer
0 Kudos
Thank you so much