2014-11-03 78 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:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; 
    [[UIApplication sharedApplication] registerForRemoteNotifications]; 

你可以从这里取出的声音阅读

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

希望这有助于