0
백 엔드에서 이벤트를 추가 할 때이있는 iOS 프로젝트가 하나 있습니다. 모두 잘 작동합니다. badge
, alert
, sound
모두 표시됩니다 (단, 'banner
'제외). 앱이 배경 모드에있을 때 배너가 표시되지 않는다면 Google 측에서 '배너'를 코딩 할 수있는 코드가 없다고 생각합니다. 이것은 내가 pushnotification
에 등록하는 방법입니다.푸시 알림 배너가 표시되지 않음 - ios9
UIUserNotificationType types = UIUserNotificationTypeBadge |
UIUserNotificationTypeSound | UIUserNotificationTypeAlert;
UIUserNotificationSettings *mySettings =
[UIUserNotificationSettings settingsForTypes:types categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:mySettings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
시뮬레이터 나 iDevice에서 앱을 실행하고 있습니까? 푸시 알림은 시뮬레이터에 표시되지 않습니다. –
기기 토큰을 등록하셨습니까? –
@GijsSotthewes 기기에서 실행 중이고 모든 알림을 받고 있습니다. 알림이 실행되는 동안에 만 배너를 표시하는 데 문제가 있습니다. –