Privacy Policy About Us Android 11 Flutter


Reading phone number  

To read the phone in Android 11, you must request the READ_PHONE_NUMBERS permission, instead of the READ_PHONE_STATE permission.

The following manifest declaration snippet demonstrates this process:

<manifest>
    <!-- Grants the READ_PHONE_STATE permission only on devices that run
         Android 10 (API level 29) and lower. -->
    <uses-permission android:name="READ_PHONE_STATE"
                     android:maxSdkVersion="29" />
    <uses-permission android:name="READ_PHONE_NUMBERS" />
</manifest>