So, I want to listen to incoming Bluetooth data, and send a text message in reply,
and If I get a text message I want to send that data over Bluetooth,
But in the background instead of foregrond
Im using a BluetoothLE extension, and the builtin texting extension,
Those work well when app in foreground.
I just want maybe examples of how to do it, then we can troubleshoot from there
I can't seem to figure it out, and this is my first time making a Topic? A question? Help? Idk, Please correct me if I do anything wrong
Thanks!
Hello, I got assistance months ago from Taifun, but I still can't figure out background services. If someone could help me get started with it, I’d really appreciate it. I don't understand how it works or how to interface with it, despite looking at various examples. If someone could look at my .aia file and help me get started, that would be great. Thanks!
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...
which means in your case post a screenshot of your relevant blocks...
To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.
I haven't yet implemented it, as I don't understand how I would where. I've looked at various examples and I just don't quite understand background services
Its fine, you are just overwhelmed with a lot of information. Read the Itoo topic fully once. Then check out the Resources & Quick Start section that offers multiple test examples.
The LocationChanged event does have 4 arguments, your event handler locationChange does have only 3
Also you could rename your arguments to get more readable argument names
after fixing the arguments (adding the fourth), the app crash dialog pops up, but app doesnt crash (likely the service is crashing),
and I also notice that when my phone is turned off / on the lock screen the Location icon is gone (indicating location is not being used)
I tried the example aia for Itoo background tasks, and it isn't working either; But it isn't crashing