First we should add the Sound files to bundle of the projects.Then we can create payload like this.
{"aps": {"alert": "hi", "sound": "attention.wav"}, "device_tokens": ["1E22FB4E50812D90F85EA9B6E93DB7A90643F09D07A86B0E4FB724CE04735C70"]}
Sound field file name should exist in application's bundle.
{"aps": {"alert": "hi", "sound": "attention.wav"}, "device_tokens": ["1E22FB4E50812D90F85EA9B6E93DB7A90643F09D07A86B0E4FB724CE04735C70"]}
Sound field file name should exist in application's bundle.
No comments:
Post a Comment