mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
On iOS, FirebaseMessaging.getToken() throws apns-token-not-set when called before Apple has asynchronously delivered the APNs token, which happens after the permission prompt. This surfaced as "Failed to update push settings" with the toggle stuck off. Poll getAPNSToken() with a short bounded wait first, and return false (toggle stays off) rather than throwing if it never arrives. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>