Can I send message while phone is inactive?

I'm trying to make an app using 'app inventor'.

I wnat to send data from aduino bluetooth to app.
If aduino send wrong data, I want to make 'app' to send message automatically. Even if phone is inactive.
Can I?
If so, plz show me related webpage.
Thank you:)