Issues related to iOS and Android permissions in Rn

Source: Internet
Author: User

In daily development, it is often necessary to obtain a permission for the application such as viewing contacts/opening the camera, etc.

1:ios iOS Rights Management in Info.plist settings info.plist is mainly to manage some of the app's information files, such as version AH permissions, etc.

This is mainly to set the application's HTTP access rights

2:android Android Permissions in Rn has permissionsandroid this API, the permissions are mainly set in the Androidmainfest.mxl file to register,

This API is mainly divided into 2 steps, the first step is to detect whether the permissions have already been, if not to apply for permission


This return is a promise.

No, go to the request:

Preissionsandroid.request (permission name {   "title": "XXXX",   "message": "XXX"})

This return is also a promise

And then do the other things.

Issues related to iOS and Android permissions in Rn

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.