Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-activity workflow to enable sensors #10

Open
blootsvoets opened this issue May 30, 2017 · 1 comment
Open

Multi-activity workflow to enable sensors #10

blootsvoets opened this issue May 30, 2017 · 1 comment

Comments

@blootsvoets
Copy link
Member

blootsvoets commented May 30, 2017

When sensors are dynamically enabled, perhaps it would be good to have a multi-step workflow (with multiple activities?) to enable all sensors.

  1. Log in
    • get metadata and sensors used from the management API
  2. "Sensor 1 wants to collect this type of data because reasons, please click yes on the next permission dialog" or something like that
    • if no -> please enable, this app cannot be used without the full set of permissions
    • if yes -> "To connecting to Sensor 1, please..." -> wait until connected.
    • continue for other sensors
  3. "Data is being collected."
    • or "please reconnect to Sensor 2!"

Whenever a new sensor is added to this set, it should return to activity 2 before requesting permissions and enabling the sensor.

@blootsvoets
Copy link
Member Author

It looks like these three elements can indeed be implemented as three activities:

  1. check log in & update configuration
  2. (if the provider list has been appended or one of the permissions is missing): onboarding
  3. data collection

Within these three activities, fragments should be used to define how the UI should look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant