1

A blind tester of mine suggested the use of simple vocal notifications instead of the full blown ones, totally useless to them and just wasting battery life. So I thought of employing:

UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification,"string")

for that. Too bad the string is not read while the app is in background as I could test by executing the app in the remote fetch target. Is there some way to trigger just voice notification even in background for VoiceOver users?

mfaani
  • 33,269
  • 19
  • 164
  • 293
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
  • i believe uiaccessibility will only reads the elements visible to the user, but not when the app is in background. Did u try posting the notification in the app delegate app enter background method ? – Teja Nandamuri Jan 05 '16 at 16:42
  • Yes, of course and I also checked the command was executed. In fact I was of that idea too, yet my blind tester told me other apps provided voice notifications without showing any alert and I may think of no the way to attain that, short of recording the message and delivering it as a sound. – Fabrizio Bartolomucci Jan 05 '16 at 22:10

1 Answers1

0

Use the AVSpeechSynthesizer in background mode to get your vocal notification and check if VoiceOver is running if it's just for this kind of users.

XLE_22
  • 5,124
  • 3
  • 21
  • 72