Skip to content

Commit a4fbdb6

Browse files
StefanWallinirony
andauthoredJun 27, 2022
Merge push notifications & open tenders together (#21)
* feat: open tenders screen * fix: handle loading dis correctly * fix: comment out illegal styles * feat: create offer * fix: bugfix focus caused endless loop * feat: layout * chore: remove warnings * chore: refactor hero * feat: reuse hero in createTender * feat: added sliders - with: StefanWallin and md2perpe * fix: prevent div/0 * feat: push notifications - Create UI for seeing notifications in a list. - Store and CRUD devices on pg with backend. - Store and CRUD notifications on pg with backend. - Create library that can send a notification to a device via FCM. - Devices can receive notifications from FCM. - Have a first screen that asks for Notification permissions on iOS. - Update notification status on patch/delete - Up to date badge icon count - Opening notification opens correct screen - Add toasts FCM = Firebase Cloud Messaging Each user device that has registered for notifications or other persistance tied to the device. Can be tied to user accounts later on when we've implemented user accounts. Devices are currently identified by uniqueDeviceID Each device's list of received notifications For this feature I tried out react-native-notifications from WIX and the community's packages(iOS & Android) react-native-push-notification which both had slighlty awkward API's - `@react-native-async-storage/async-storage` — store device registration status on the device - `@react-native-firebase/app` — Core library for Firebase - `@react-native-firebase/messaging` — Message specific library for Firebase Cloud Messaging - `react-native-device-info` — Retreive a device-unique identifier that survives reinstalls - UI now respects dark/light mode from system settings. - Added docker-compose to easily run dev api locally. **Fix background receieve message to update badge count** > "When sending data messages to Apple devices, the priority must be set to 5, or normal priority. > Messages sent with high priority are rejected by the FCM backend with the error INVALID_ARGUMENT." > > *Source:* > https://firebase.google.com/docs/cloud-messaging/concept-options#notification-messages-with-optional-data-payload - Send unreadCount on separate message so badge number updates on notification creation * HappyLou Branding * Make sure each model has proper id and createdAt timestamp * Prettier fix * Mergefixes * Setup basic translations from ÖS * Enter swedish texts into translation * Add swedish in english translation * Cleanup * English Translation completed * Make deployable Co-authored-by: Christian Landgren <christian@landgren.nu>
1 parent 206ab47 commit a4fbdb6

File tree

155 files changed

+8171
-1994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+8171
-1994
lines changed
 

‎.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[*]
2+
indent_style = space
3+
indent_size = 2

‎.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules
22
.DS_Store
3-
secret*.yaml
3+
secret*.yaml
4+
pg-data
5+
.secrets
6+
*.tsbuildinfo
7+
.env

0 commit comments

Comments
 (0)
Please sign in to comment.