Accessibility plugin

I’m having trouble using “Accessibility.speak()” function in Capacitor. It’s supposed to speak a string with a connected screen reader but only works sometimes. I’ve tried it in all sort of ways. It seems to me it gets cut of when the app changes or sets focus to html elements and reads that out instead. One workaround is to use setTimeout but that feels very hacky and equally unpredictable. Any suggestions?

Example code in a test page:

ngOnInit() {
    Accessibility.speak({value: 'This never gets spoken'});
    setTimeout(()=> { 
        Accessibility.speak({value: 'Set time out of 2 seconds. This works!'});
    }, 2000);

Tested on an Iphone 7, in a brand new project, running the latest Ionic and Capacitor to date.


Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 5.0.5
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 8.3.25
@ionic/angular-toolkit : 2.2.0


Capacitor CLI : 1.5.1
@capacitor/core : 1.5.1


cordova-res : not installed
native-run (update available: 0.3.0) : 0.2.6


NodeJS : v10.16.0 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave