App
Basics
Very simple Webview App with java ↔ javascript interface, that submits DeviceID to backend, so that Push notifications can be send.
Changes needed
Backend
- needs exta field in user-table for DeviceID (question: multiple ones?)
- Connect to google Firebase Server for sending Notifications
Frontend
check if user is in App (done by "angular.idDefined(Android)") - if so, call Android.getDeviceID() and send it to Backend.
- User service needs setDeviceID() and deleteDeviceID() fields
- Call User.setDeviceID() on login, and User.deleteDeviceID() on logout if "Android" variable is defined
Simple Trust system
Basics
- Relative in Group
- Relative in General
- Trust decreases over time
- Possibility to "Donate Trust" to other people
- Possibility for group to use Trust-System or standard admin system (like Facebook groups)
Calculation
PersonalGroup Trust
PersonalGroupInteractions(time t) + personalGeneralTrust(time t) / GENERAL_TRUST_DIVIDER * numOfGroupsJoined)
Personal Store Trust
PersonalStoreInteractions(time t) + groupTrust(time t) / (GROUP_TRUST_DIVIDER * numOfStoresInGroup)
Group Admins
isAdmin = isInTop3OfGroup || (personalGroupTrust / sumOfGroupTrust) > (sumOfGroupTrust / PeopleInGroup)