Saad Umar
Saad Umar

Reputation: 604

iphone apns sending push notification in different languages with voice

i have studied and implemented Ray wenderlich's awesome tutorials on apns, and i am using this php script on server side

https://github.com/sebastianborggrewe/PHP-Apple-Push-Notification-Server

every thing is going well, but i just want to know that how can i send push notification in a language other than english, like arabic, urdu, hindi or french...???(i am sending notifications from php server using a web form) this is first part of question, the other part is that can i send a voice message with push notification, i know that there is a property for sound in apns but dont know its max. length (max length of push notification is 256 bytes). plz. guide me thanx and Regards Saad.

Upvotes: 1

Views: 2914

Answers (1)

Martin Ullrich
Martin Ullrich

Reputation: 100701

Sound support is limited to playing audio files of the app (you include PushSound.aiff in your app and send "PushSound.aiff" in your apns-message.. that's all you can do!)

For localization, you [need to include localized strings in your app and then include the String-Key(ID) in the push message.
You should read the guide apple provides for all questions regarding push notifications

To add localized strings, you can add a strings file (file->new, select iOS/Resource->Stringsfile; name it Localizable.strings). You can add format strings ("%@ has sent you a new message") and supply the format string's arguments in the push notification (see guide). Again there is a internationalization guide

Upvotes: 3

Related Questions