cph-cachet / carp.sensing-flutter

CARP Mobile Sensing for Flutter, including mobile sensing framework, data backend support, and the CARP mobile sensing app.
MIT License
80 stars 28 forks source link

Registered user without active invitations #228

Closed luciamontesinos closed 2 years ago

luciamontesinos commented 2 years ago

If the user is registered but doesn't have any active invitations (the user left a study or the study ended), it should display some kind of information message (e.g "It seems like you are not invited to any ongoing study") and give the option to redirect to sign in.

https://github.com/cph-cachet/carp.sensing-flutter/blob/bf9e34a56506a4ccaa55ef2273ffbacda1243f04/backends/carp_webservices/lib/carp_services/participation_service.dart#L95

bardram commented 2 years ago

I don't think showing this kind of message is to be done by the carp_services component. It should be up to the app to handle this situation. Each application might want to handle this situation differently. Also - localization (i.e. different languages) would also be handled in the app.