Skip to content

Commit

Permalink
improve location permission message
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkubaczkowski committed Mar 30, 2022
1 parent 7a59020 commit 877dfc5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ useEffect(() => {
const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
{
title: 'Location Permission Permission',
message: 'App needs access to your Location ',
title: 'Location Permission',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
}
);
Expand All @@ -159,8 +159,8 @@ import { requestNeededAndroidPermissions } from 'stripe-terminal-react-native';
try {
const granted = await requestNeededAndroidPermissions({
accessFineLocation: {
title: 'Location Permission Permission',
message: 'App needs access to your Location',
title: 'Location Permission',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
},
});
Expand Down
4 changes: 2 additions & 2 deletions docs/integration-builder/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default function App() {
const granted = await PermissionsAndroid.request(
'android.permission.ACCESS_FINE_LOCATION',
{
title: 'Location Permission Permission',
message: 'App needs access to your Location ',
title: 'Location Permission',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
}
);
Expand Down
8 changes: 4 additions & 4 deletions docs/set-up-your-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ useEffect(() => {
const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
{
title: 'Location Permission Permission',
message: 'App needs access to your Location',
title: 'Location Permission',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
}
);
Expand All @@ -111,8 +111,8 @@ import { requestNeededAndroidPermissions } from 'stripe-terminal-react-native';
try {
const granted = await requestNeededAndroidPermissions({
accessFineLocation: {
title: 'Location Permission Permission',
message: 'App needs access to your Location',
title: 'Location Permission',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
},
});
Expand Down
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export default function App() {
try {
const granted = await requestNeededAndroidPermissions({
accessFineLocation: {
title: 'Location Permission Permission',
message: 'App needs access to your Location',
title: 'Location Permission',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/androidPermissionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PermissionsAndroid, Platform } from 'react-native';

const defaultFineLocationParams = {
title: 'Location Permission',
message: 'App needs access to your Location',
message: 'Stripe Terminal needs access to your location',
buttonPositive: 'Accept',
};

Expand Down

0 comments on commit 877dfc5

Please sign in to comment.