-1

How can I customize the title of the NSUserTrackingUsageDescription system prompt / alert?

In the attached image I underlined the text I want to change with color green.

The text underlined with yellow can be customized within Info.plist key "Privacy - Tracking Usage Description", that works fine.

Maybe this can be done with localization?

alert to customize

Paul Vincent Beigang
  • 2,972
  • 2
  • 16
  • 31
  • That text cannot be changed. – Paulw11 Nov 29 '22 at 09:16
  • Thanks for your answer @Paulw11. Why cant it be changed? Is there an Apple guideline or something similar which states that? – Paul Vincent Beigang Nov 29 '22 at 09:48
  • There just isn't any API or way to change it. The dialog is presented by iOS. You can't change the titles of any system "permission" dialogs. It is a user protection. Unscrupulous app creators could try to do sneaky things. Consistency also helps users understand what is being requested. – Paulw11 Nov 29 '22 at 10:08
  • Yes, You can localize info.plist file messages. https://stackoverflow.com/a/25736915/1597744 – Toseef Khilji Nov 29 '22 at 11:04
  • @ToseefKhilji it is not available within the info.plist, so no localization is available – Paul Vincent Beigang Nov 29 '22 at 13:12
  • @PaulVincentBeigang: You need to create new file `InfoPlist.strings` that will contain localize strings. – Toseef Khilji Nov 30 '22 at 04:12
  • @ToseefKhilji what key to use in "InfoPlist.strings" to localize the specific prompt title I want to change? – Paul Vincent Beigang Nov 30 '22 at 08:21
  • @PaulVincentBeigang: Please check this [Apple Doc](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html#//apple_ref/doc/uid/TP40009254-102276) and this SA question https://stackoverflow.com/q/25736700/1597744 – Toseef Khilji Nov 30 '22 at 10:06

1 Answers1

0

It can´t be changed, there is no API available.

See @Paulw11 comments to the original question.

Paul Vincent Beigang
  • 2,972
  • 2
  • 16
  • 31