laxmannale / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

Even when try to send the notification with diffrent sound settings it always activate default sound. #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Send a notification with different sound types available in the iPhone  such as 
Chime,Bell,,etc but always activate the default sound.Always receiver hears the 
same default sound even after configuring different sound settings using 
payLoad.addSound("Bell")API.

 Find the source code use to generate the notification.

  PushNotificationPayload payLoad = new PushNotificationPayload();
  payLoad.addCustomAlertBody("");
  payLoad.addCustomAlertActionLocKey("Open");
  payLoad.addCustomAlertLocKey("New " + tickets.get(key) + " # " +   
                                 key + " has been opened.");
  payLoad.addSound("Bell");
  payLoad.addCustomDictionary("acme1", "OPEN_SOC_TICKET");
  payLoad.addCustomDictionary("acme2", key);

  Push.payload(payLoad, new File("certificte.p12"), 
                                 "password", true,tokens);

  The logs are as follows:

  VALID  (keystore was found)
  Verifying keystore content: VERIFIED  (no common mistakes detected)
  All notifications pushed successfully (1):
  [1] transmitted {"aps":{"sound":"Bell","alert":{"body":"","action-loc-key":"Open","loc-key":"New P1/S3 # 24432014 has been opened."}},"acme2":"24432014","acme1":"OPEN_SOC_TICKET"} on first attempt to token fd789..1ed30

Original issue reported on code.google.com by hirant...@gmail.com on 16 Jul 2012 at 3:17

GoogleCodeExporter commented 9 years ago
According to the specs, the "sound" parameter refers to a sound *in the 
application bundle*.  The documentation does not say you can play any other 
sound than a bundled one or the "default" one.

Closing because this is not a feature of APNS.

Original comment by sype...@gmail.com on 17 Jul 2012 at 6:33