8000 PermissionsAndroid don't show custom title and message . · Issue #31547 · facebook/react-native · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
PermissionsAndroid don't show custom title and message . #31547
Closed
@Saurabhreactninja

Description

@Saurabhreactninja

In react version 0.62
I am calling PermissionsAndroid with custom message and title but app just show the default message. I am using the code given below.
const requestLocationPermission = async () => {
try {
const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
{
title: "LocationPermission",
message:
"Our app need to access your location" +
"so that we can use to separate photo on asset .",
buttonNeutral: "Ask Me Later",
buttonNegative: "Cancel",
buttonPositive: "OK"
}
);
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
console.log("You can use the location");
} else {
console.log("Location permission denied");
}
} catch (err) {
console.warn(err);
}
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0