phonegap/phonegap-plugin-push

Trying to recieve "speaking" notifications with tts plugin

Woean opened this issue · 0 comments

Woean commented

Expected Behaviour

I'm trying to get "speaking" notifications, with the text to speech (tts) plugin:

 push.on('notification', function (data) {

                TTS.speak({
                            text: 'DEMO',
                            locale: 'en-US',
                            rate: 0.75
                        }).then(function () {
                            alert('success');
                        }, function (reason) {
                            alert(reason);
                        });
                }, false);

Actual Behaviour

It works when the app is in the foreground and open, but not in the background. Does anyone have an idea/same problem/solution? Thanks :)