{"_id":"5a6b684793313c005b692e22","category":{"_id":"5a6b684793313c005b692e0a","version":"5a6b684793313c005b692e07","project":"57c87ef85754fa1700b1228d","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-05T21:53:37.386Z","from_sync":false,"order":2,"slug":"reference","title":"Reference"},"user":"57c73a03e6935b1700b15115","parentDoc":null,"project":"57c87ef85754fa1700b1228d","version":{"_id":"5a6b684793313c005b692e07","project":"57c87ef85754fa1700b1228d","__v":1,"createdAt":"2018-01-26T17:41:27.297Z","releaseDate":"2018-01-26T17:41:27.297Z","categories":["5a6b684793313c005b692e08","5a6b684793313c005b692e09","5a6b684793313c005b692e0a","5a6b684793313c005b692e0b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.5.3","version":"3.5.3"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-08T18:33:44.137Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":17,"body":"The Primer SDK can be configured to request permissions from the user. In order to acheive this, you must do two things. You must set your targetSdkVersion to be 23 in your build.gradle file, and you will have to declare these permissions in your manifest (even if they are a runtime permission, as stated in the [Android documentation](https://developer.android.com/guide/topics/manifest/uses-permission-element.html)). \n\nFor each permission that you will be requesting in your primer flow, you need to add the following lines in your AndroidManifest.xml\n\n\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<uses-permission android:name=\\\"NAME_OF_PERMISSION\\\"/>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"permissions","type":"basic","title":"Permissions"}
The Primer SDK can be configured to request permissions from the user. In order to acheive this, you must do two things. You must set your targetSdkVersion to be 23 in your build.gradle file, and you will have to declare these permissions in your manifest (even if they are a runtime permission, as stated in the [Android documentation](https://developer.android.com/guide/topics/manifest/uses-permission-element.html)). For each permission that you will be requesting in your primer flow, you need to add the following lines in your AndroidManifest.xml [block:code] { "codes": [ { "code": "<uses-permission android:name=\"NAME_OF_PERMISSION\"/>", "language": "xml" } ] } [/block]