Send some data to expo.background service

So, I have build my own Ebook app that have support to audio play. I am using expo-speech to do that.

The problem is that when the app is in the background, expo-speech stops working after sometimes.
Which is normal in this case.
So I though of using the expo background service.

But after I read the documentation I did not find a way for the app to communicate with the service, Is there a support for it?

Say that I press play Then I should send some data to the background service to play. Is it possible? Is there a documentation for it somewhere ?

Expo-task-manager provides an API that allows you to manage long-running tasks,Standalone apps need some extra configuration: on iOS, each background.

Yes I looked at it but I am not finding any method in documentation that could send some data to the current task. am I missing something, could you please point out at the right documentation or the method that could send data to the current server with the giving name or something like that?.

Here is my current code

import * as BackgroundFetch from 'expo-background-fetch';

import * as TaskManager from 'expo-task-manager';

const BACKGROUND_FETCH_TASK = 'background-Audio-fetch';

export default class Audio {

    public onChange?: (audioIndex: number) => void;

    constructor() {

        TaskManager.defineTask(BACKGROUND_FETCH_TASK, async () => {

            const now =;


            console.log(`Got background fetch call at date: ${new Date(now).toISOString()}`);

            return BackgroundFetch.Result.NewData;




         /// send the data to the background service and start play the text.



        /// stop the service and also the text so speech.


    async register() {

        return BackgroundFetch.registerTaskAsync(BACKGROUND_FETCH_TASK, {

            minimumInterval: 60 * 15, // 15 minutes

            stopOnTerminate: true, // android only,

            startOnBoot: false, // android only



    async unregister() {

        return BackgroundFetch.unregisterTaskAsync(BACKGROUND_FETCH_TASK);