Commit Graph

11 Commits

Author SHA1 Message Date
Samuel Newman c01d023411 use sender handle in INPersonHandle for communication notifications
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 14:41:50 +03:00
Samuel Newman 02ca0516ab remove jpeg format forcing from avatar download
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 13:13:53 +03:00
Samuel Newman b9dbdb2250 remove debug logging from NSE
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 13:10:29 +03:00
Samuel Newman 610af7a29e force jpeg format for avatar download in NSE
CDN may serve WebP by default which INImage doesn't reliably handle.
Append @jpeg to the URL to request JPEG format instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 11:37:30 +03:00
Samuel Newman 7477eebe00 add debug logging to NSE for avatar download troubleshooting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 11:35:14 +03:00
Samuel Newman c17d1bcc05 add iOS communication notifications for chat with sender avatars
Uses INSendMessageIntent to display sender profile pictures in DM
notifications. The NSE downloads the avatar thumbnail and creates a
Communication Notification, falling back gracefully if the download
fails or the avatar URL is absent.

Also adds chat-reaction support to the notification handler on both
iOS and Android.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 10:20:38 +03:00
Hailey 53b095adeb Improvements to NSE (#4992) 2024-09-23 18:48:48 -07:00
Hailey 2397104ad6 Lint native files (#4768) 2024-07-11 18:15:35 -07:00
Hailey 480a40862f Use the proper logic on iOS to increment the badge (#4233) 2024-06-07 15:15:33 -07:00
Hailey d2c81c9d3d Disable badge incrementing for DMs (#4088)
* disable badge increments for dms

* revert decrementing in js for dms

* reset badge on read notifications

* remove some other code

* prevent duplicate notification events
2024-05-17 16:05:32 -07:00
Hailey bf7b66d5c1 Add push notification extensions (#4005)
* add wav

* add sound to config

* add extension to `updateExtensions.sh`

* add ios source files

* add a build extension

* add a new module

* use correct type on ios

* update the build plugin

* add android handler

* create a patch for expo-notifications

* basic android implementation

* add entitlements for notifications extension

* add some generic logic for ios

* add age check logic

* add extension to app config

* remove dash

* move directory

* rename again

* update privacy manifest

* add prefs storage ios

* better types

* create interface for setting and getting prefs

* add notifications prefs for android

* add functions to module

* add types to js

* add prefs context

* add web stub

* wrap the app

* fix types

* more preferences for ios

* add a test toggle

* swap vars

* update patch

* fix patch error

* fix typo

* sigh

* sigh

* get stored prefs on launch

* anotehr type

* simplify

* about finished

* comment

* adjust plugin

* use supported file types

* update NSE

* futureproof ios

* futureproof android

* update sound file name

* handle initialization

* more cleanup

* update js types

* strict js types

* set the notification channel

* rm

* add silent channel

* add mute logic

* update patch

* podfile

* adjust channels

* fix android channel

* update readme

* oreo or higher

* nit

* don't use getValue

* nit
2024-05-15 11:49:07 -07:00