Educado-App / educado-mobile

The repository for the educado mobile education application
GNU General Public License v3.0
1 stars 3 forks source link

Login notification shows, and only shows after having logged in (Issue #195). #208

Closed MaizeHH closed 11 months ago

MaizeHH commented 11 months ago

Description

Issue #195 highlighted that in some situations, the log in notification that appers after logging in would appear at other times as well.

Changes

feat(CourseScreen): login notification now shows if 'loggedIn' item from AsyncStorage is present. After showing the notification, the 'loggedIn' item is removed feat(LoginForm): 'loggedIn' is added to AsyncStorage when logging in feat(Login): 'loggedIn' is added to AsyncStorage when logging in automatically

Related Issues

Issue #195.

Checklist

Screenshots (if applicable)

None.

If mobile/frontend pull request, what version of the backend is it stable, and running on?

Branch: dev

Commit id: https://github.com/Educado-App/educado-backend/commit/65bffdbfb1a9c839a250eeee312e0c35c2d574e1

Notes for Reviewers

Right now this is done using AsyncStorage. A better solution would be to use for example a global state management solution, but will not be done given the time constraints.