Hello All,
I want to implement Text-to-Speech (TTS) and vibration functionality when a push notification arrives. In my app, I am already using Critical Alerts, and the critical alert sound plays correctly in all app states.
However, I need to confirm whether it is possible to trigger Text-to-Speech and custom vibration in all app states:
Foreground
Background
Terminated (killed) state
My Questions:
Is it technically possible for iOS to run Text-to-Speech (using AVSpeechSynthesizer) when a critical alert notification arrives in background or terminated state?
Is it possible to trigger custom vibration patterns from a critical alert when the app is not running?
If yes, can someone please provide guidance or sample code on how to implement this?
If no, can Apple explain the limitation or provide documentation confirming that TTS and vibration cannot be triggered in background/kill states?
What works currently:
TTS and vibration only work in foreground when the app is active.
Critical alert sound works correctly in all states.
I want confirmation on whether iOS supports background/terminated TTS and vibration, or if this is a platform restriction even when using Critical Alerts.
Thank you!