feat(notifications): persist stable deviceId for FCM registration

Add getOrCreateDeviceId() backed by Capacitor Preferences so one UUID
survives app restarts and token refreshes. Include deviceId in POST
/notifications/register alongside fcmToken, platform, and testMode.
Add @capacitor/preferences and lightweight DeviceId logs (no token/ID values).
This commit is contained in:
Jose Olarte III
2026-05-13 18:41:10 +08:00
parent 5a40075ab1
commit 6a9f34a516
4 changed files with 959 additions and 284 deletions

View File

@@ -148,6 +148,7 @@
"@capacitor/core": "^6.2.0",
"@capacitor/filesystem": "^6.0.0",
"@capacitor/ios": "^6.2.0",
"@capacitor/preferences": "^6.0.4",
"@capacitor/push-notifications": "^6.0.5",
"@capacitor/share": "^6.0.3",
"@capacitor/status-bar": "^6.0.2",