Asking for permissions with custom text

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!

"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

@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?

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

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

pleasure:innocent:

1 Like

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