Matthias Nott
2026-04-01 f68a986682535dca139515741dd60be26a82edd6
refs
author Matthias Nott <mnott@mnsoft.org>
Wednesday, April 1, 2026 12:28 +0200
committer Matthias Nott <mnott@mnsoft.org>
Wednesday, April 1, 2026 12:28 +0200
commitf68a986682535dca139515741dd60be26a82edd6
tree cb474a0268215f4823179e25a468fafe9990050f tree | zip | gz
parent 29f7a2c444d60fa155451d7e7f65cf637a1b7f41 view | diff
feat: add APNs push notification support

- Add push package (3.3.3) for native iOS push without Firebase
- Add Runner.entitlements with aps-environment=development
- Wire CODE_SIGN_ENTITLEMENTS in all three build configs (Debug/Release/Profile)
- Update AppDelegate.swift to forward UNUserNotificationCenter delegate methods
- Add remote-notification to UIBackgroundModes in Info.plist
- Add PushService: requests permission, listens for tokens, sends to daemon
via MQTT on pailot/device/token, handles notification tap for session routing
- Add MqttService.sendDeviceToken(): publishes token to pailot/device/token
- Initialize PushService after MQTT connect in chat_screen.dart
- Re-register token on MQTT reconnect so daemon always has fresh token
2 files added
9 files modified
changed files
ios/Podfile.lock diff | view | blame | history
ios/Runner.xcodeproj/project.pbxproj diff | view | blame | history
ios/Runner/AppDelegate.swift diff | view | blame | history
ios/Runner/Info.plist diff | view | blame | history
ios/Runner/Runner.entitlements diff | view | blame | history
lib/screens/chat_screen.dart diff | view | blame | history
lib/services/mqtt_service.dart diff | view | blame | history
lib/services/push_service.dart diff | view | blame | history
macos/Flutter/GeneratedPluginRegistrant.swift diff | view | blame | history
pubspec.lock diff | view | blame | history
pubspec.yaml diff | view | blame | history