UIAccessibilityPostNotification in background

413 Views Asked by At

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?

1

There are 1 best solutions below

0
XLE_22 On

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.