Asking for permissions with custom text

#1

Is there a way to add a custom text when asking for permissions? My app recently got denied by apple stating it has to provide detailed information about why it needs to access the calendar. They provided a screenshot on which a dialog with a custom message was shown.

My current workaround for this would be to fist display a modal indicating the reason and afterwards asking for permission.

Thank You!

#2
"infoPlist": {
    "NSCalendarsUsageDescription": "YOUR CUSTOM TEXT"
  }, 

Ref :- https://github.com/expo/expo/blob/master/exponent-view-template/ios/exponent-view-template/Supporting/Info.plist#L28-L41

Only Add this in App.json Then u able to change custom text.
good Luck

1 Like
#3

@biplov14 thank you very much, that worked!

So if I understand correctly; as this text is hardcoded there’s no way of making it dynamic for use in different languages, right?

#4

Hey @niftyfit,

On iOS, you can localize these dialogs: https://docs.expo.io/versions/v30.0.0/distribution/app-stores#localizing-system-dialogs-on-ios

Cheers,

Adam

1 Like
#5

Hi,
oh yes, overlooked this one, thank you all!
Cheers

#6

pleasure:innocent:

closed #7

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.