Search code examples
iosapple-push-notificationsapns-php

How we can fetch push notification in background


I am receiving push notification in that payload message i am receiving one URL with message as push notification. but i dont want to show URL to user i want to show only message to user. is it possible from ios side.


Solution

  • If your are using url as a separate key in aps then its possible you can display alert only as a message, otherwise any message can't be modify message in background.

     "aps": {
            "alert": "alert!",
            "sound": "default",
            "URL"  : "your url"
            }