I am not sure how legal it would be to collect this kind of data without asking for the user's approval first (not that it would stop all devs of course).
Glancing at the doc, I might be mistaken, but it looks like on iOS, just like on Android, you don't need to ask a permission in order to access to the accelerometer.
You can do the second just by checking for the significant motion sensor.
Awareness uses cell based location tracking (along with GPS when necessary)
And yes you can do everything here by coding it yourself, that's not the point of the API.
The added value of the API is that it coordinates the requests of all the apps on the phone in order to poll the sensors as little as possible and allows you to create complex conditions (like walking OR in the park AND headphones plugged in) while balancing them for battery useage.
Then it should be open source, publicly verified, OR it should be sandboxed and have no network access at all.
By making apps aware of your physical condition (are you walking, standing, running, at home, at work, etc ... ) we can make them smarter.
For exemple : -don't notify me about the daily techmeeting when I am in another country in order to give a talk.
-automatically start recording my run when I start running, not 10 minutes afterwards when I remember to open the app.
It needs to be presented and explained to the users (actually the GPS permission is necessary for any detection tied to the user's location) but it can make apps way smarter.
https://developers.google.com/awareness/