diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-24 19:32:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 19:32:24 -0600 |
commit | 869f6c4e0e464b7f5be9ef5676210ae8844bd834 (patch) | |
tree | a9a823723099129bb25c4b57435925b481d54266 /__mocks__/@notifee/react-native.ts | |
parent | 21f5f4de157a73b3c4406461b2a36555b1bff228 (diff) | |
download | voidsky-869f6c4e0e464b7f5be9ef5676210ae8844bd834.tar.zst |
Initial pass at push notifications + some fixes to the session management (#91)
* Fix: test the session during resume to ensure it's valid * Don't delete sessions for now * Add notifee and request notif permissions on first login * Set unread notifications badge on app icon * Trigger a notifee card on new notifications * Experimental: use react-native-background-fetch to check for notifications * Add missing mocks * Fix to resumeSession()
Diffstat (limited to '__mocks__/@notifee/react-native.ts')
-rw-r--r-- | __mocks__/@notifee/react-native.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/__mocks__/@notifee/react-native.ts b/__mocks__/@notifee/react-native.ts new file mode 100644 index 000000000..7e5ccec93 --- /dev/null +++ b/__mocks__/@notifee/react-native.ts @@ -0,0 +1,6 @@ +export default { + requestPermission: jest.fn(), + onForegroundEvent: jest.fn(), + setBadgeCount: jest.fn(), + displayNotification: jest.fn(), +} |