Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Check if user allowed to add the photo library
Started by timae07 Mar 14 2018 09:49 AM

No replies to this topic
access photo library add photos
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

timae07

[GLOBAL: userInfoPane.html]
timae07
  • Observer

  • 2 posts
  • Corona SDK

Hi!

In my photo app the user can save the photos he took to iOS "Photos". So the NSPhotoLibraryAddUsageDescription will say: "This app would like to add the photo library." 

How can I check if the user denied the access in order to warn him, that all his photos will be deleted if he continues?
I tried it with

local hasLibrary,hasAccessToPhotos= media.hasSource( media.SavedPhotosAlbum )

But both variables are always true.

 

Maybe someone has an idea. Thank you very much.
 

Tim




[topic_controls]
[/topic_controls]