# Permissions

This walkthrough explains how to add necessary permissions to use Storyly Moments and their effects when permissions are not allowed. Storyly Moments requires two different permission in order to run properly. These permissions are:

# Photo Library Usage Permission

For your users to create a story, they should allow your application to use photo library. If you want to use Storyly Moments, you must add the following key value pair in application Info.plist file even though your application does not need photo library permission:

<dict>
	<key>Privacy - Photo Library Usage Description</key>
	<string>Description to show for photo library permission</string>
</dict>

TIP

If you already have this key value pair for your application you do not need to add an extra one.

For more information about photo library permission, please check here (opens new window).

If your user has not allowed or forbid photo library usage yet, upon opening photo gallery Storyly Moments presents an alert for permission. If users allow, they will be able to see the media in library, if they forbid they will see an information screen instead of media. Using this information screen, they will be able to go to settings and give permission.

WARNING

If you do not add the entry in Info.plist, your application will crash when permission is needed.

# Camera Usage Permission

For your users to create a story by capturing media using the camera, they should allow your application to use camera. If you want to use Storyly Moments, you must add the following key value pair in application Info.plist file even though your application does not need camera usage permission:

<dict>
	<key>Privacy - Camera Usage Description</key>
	<string>Description to show for camera usage permission</string>
</dict>

TIP

If you already have this key value pair for your application you do not need to add an extra one.

For more information about camera usage permission, please check here (opens new window).

If your user has not allowed or forbid camera usage yet, upon opening camera Storyly Moments presents an alert for permission. If users allow, they will be able to open camera, if they forbid they will see an information screen in capture area. Using this information screen, they will be able to go to settings and give permission.

WARNING

If you do not add the entry in Info.plist, your application will crash when permission is needed.