feat: Redesign home screen sections with updated testimonial card styles, refined trust stats layout, and spacing adjustments.
This commit is contained in:
@@ -119,6 +119,14 @@ class PushNotificationService {
|
||||
|
||||
Future<void> _getAndRegisterToken() async {
|
||||
try {
|
||||
// On iOS, wait for APNS token before requesting FCM token
|
||||
if (Platform.isIOS) {
|
||||
final apnsToken = await _messaging!.getAPNSToken();
|
||||
if (apnsToken == null) {
|
||||
debugPrint('[FCM] APNS token not available yet (iOS simulator?), skipping FCM token registration');
|
||||
return;
|
||||
}
|
||||
}
|
||||
final token = await _messaging!.getToken();
|
||||
if (token != null) {
|
||||
_currentToken = token;
|
||||
|
||||
Reference in New Issue
Block a user