Search code examples
apple-push-notificationsandroid-paypassbookwallet

Passbook changeMessage displaying user friendly URL


Lets imagine I have a backField with data below:

{
    key:"key-1",
    attributedValue:"<a href='https://somewhere.com'>Link</a>",
    changeMessage: "Key-1 field changed:%@"
}

I wish to display user friendly - Key-1 field changed:Link at the lock screen when push notification arrives, instead of - Key-1 field changed:<a href='https://somewhere.com'>Link</a>.

Is there any option to achieve it?


Solution

  • Remove changeMessage from your back field.

    Now, create a special back field with the content of your push message and set its changeMessage to %@.