推播加聲音

{
  "aps": {
    "badge": 10,
    "alert": "Hello world!",
    "sound": "yell.mp3"
  }
}

就會直接播app內的yell.mp3這個檔案

{
  "aps": {
    "badge": 10,
    "alert": "Hello world!",
    "sound": "yell.mp3"
  },
  "customID": 1
}
還可以做到customID這種事


reference:
Local and Push Notification Programming Guide

沒有留言: