mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

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

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: hirant...@gmail.com (July 16, 2012 15:17:35)

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: http://code.google.com/p/javapns/issues/detail?id=136

mwkirk commented 11 years ago

From sype...@gmail.com on July 17, 2012 18:33:46 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.