I am running into an odd issue with my background workers. They work correctly in the AIR simulator and when running on an Android device, but when I run my app on iOS, the worker does not seem to send anything over the message channel, even text. I have tried just sending some test messages back to the app, but nothing. I am simply using this worker to load images from our server and create byte array that is then sent to main in order to write that data to local storage.
Here is the code for initializing the worker:
var workerBytes:ByteArray = new BGWorker_ByteClass();
worker = WorkerDomain.current.createWorker(workerBytes, true);
workerToMain = worker.createMessageChannel(Worker.current);
mainToWorker = Worker.current.createMessageChannel(worker);
trace("[Worker] Not Supported");
Here is the initialize code in the worker:
mainToWorker = Worker.current.getSharedProperty("mainToWorker");
workerToMain = Worker.current.getSharedProperty("workerToMain");
If you need any information, let me know.