-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
API: PermissionsAndroidNeeds: Author FeedbackNeeds: Issue TemplateThis issue does not make use of the Issue Template, and may be missing necessary information.This issue does not make use of the Issue Template, and may be missing necessary information.Newer Patch AvailablePlatform: AndroidAndroid applications.Android applications.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
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
Labels
API: PermissionsAndroidNeeds: Author FeedbackNeeds: Issue TemplateThis issue does not make use of the Issue Template, and may be missing necessary information.This issue does not make use of the Issue Template, and may be missing necessary information.Newer Patch AvailablePlatform: AndroidAndroid applications.Android applications.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.