Fix push notifications: PUSH_GATEWAY_URL was empty in v0.1.0 because
it was externalized to BuildConfig before android-signing-env exported it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move PUSH_GATEWAY_URL from hardcoded constant to BuildConfig field,
read from PUSH_GATEWAY_URL env var at build time
- Hardcode keyAlias="release" and remove storeType (PKCS12 is default),
since these are fixed values in android-signing-env
- Remove unused okhttp3.Interceptor import
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Local notifications:
- NotificationHelper posts per-room notifications from the sync loop
- Notifications suppressed when room is active (ChatScreen DisposableEffect)
- Deferred for encrypted rooms until room key arrives; fires with real body
- Notification tap navigates to the room via pendingRoomId StateFlow
- POST_NOTIFICATIONS permission requested at runtime (API 33+)
FCM push (app killed):
- MatrixFirebaseMessagingService handles token refresh and data messages
- Pusher registered with homeserver pointing to Cloudflare Worker gateway
- gateway/src/index.js: Cloudflare Worker forwards Matrix pushes to FCM v1 API
using a service-account JWT signed with Web Crypto
- last_sync_token persisted in SharedPreferences so restored sessions start with
an incremental sync and fire notifications immediately (fixes missed-on-wake bug)
- Default FCM notification channel declared in manifest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>