2014-11-03 1 views

답변

0

푸시 알림을 전송하는 서버의 코드에서 소리 매개 변수를 삭제하십시오.

예 :

{ 
    "aps": { 
     "badge": 15, 
     "alert": "Hello World", 
     **"sound": "push.caf" // Remove this sound paramter** 
    } 
} 
0

Objective C를 사용하는 경우 알림을 등록하는 AppDelegate.m에서 제거해야합니다. 당신의 코드는이

을하는 데 도움이 당신은

[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; 
    [[UIApplication sharedApplication] registerForRemoteNotifications]; 

희망을 읽어 여기에서 사운드를 제거 할 수

[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; 
    [[UIApplication sharedApplication] registerForRemoteNotifications]; 

뭔가를 읽어야한다