This project with 2 scenarios. For this example I have create an App on React Native (repo is here).
For this example I have considered 2 scenarios one for:
- Firebase and FCM
- Custom server with NodeJS
Next image explain flow of login and notifications to app
In this scenario you can do anything that you want in your nodeJS server. For example the login I use nodejs server, while data of courses I can get of moodle directly and presenta on React Native Moodle App (repo is here) but
Note: Scenario 2 is complicate and isn't functional but is just an example 😉
For this example is required an Moodle App you can use my Moodle App build in React Native (repo is here)
- Up docker with moodle
docker-compose up
- Go to localhost and login with
username: user password: bitnami
- Install plugin local-webhooks on moodle and configure your webhooks
- Run your Moodle App
- Give me star 😬