Using Bluetooth in the background tasks

I'm developing an app in App Inventor that uses the Bluetooth and clock components to execute a function that captures data sent from my Arduino and then start an activity (open a webpage) when my Bluetooth shield sends a signal. I need this to run even when the app is in background (second plan). I've searched and found the Background Tasks extension, but I don't know how the create function block works and can't find any documentation. Does any one know how I can accomplish this?