Remote notifications III
Custom payload
Remote notifications III
Custom payload
0
0
Checkbox to mark video as read
Mark as read

You can add additional data to notifications, enabling actions tailored to each specific notification.

Place your custom fields at the root level of the remote notification JSON.

{
    "aps": {
        "alert": {
            "title": "EducaSwift",
            "subtitle": "Remote Notifications",
            "body": "This is a Remote Push Notification test.",
        },
        "badge": 12
    },
    "custom_field": "1",
    "another_custom_field": "2"
}

For local notifications, you can add this info to the content:

let content = UNMutableNotificationContent()
content.title = "EducaSwift"
content.body = "This is a Local Push Notification test."
content.userInfo = [
    "custom_field": 1,
    "another_custom_field": 2
]

Continue reading

Access to all the content with our plans.

Basic Plan

FREE

Start Now
  • Junior level content
  • Senior level content
  • Expert level content
  • Extra content
  • Question submissions
Monthly
Yearly

Plan logo

-

Unlimited access to the whole content

  • Junior level content
  • Senior level content
  • Expert level content
  • Extra content
  • Question submissions

Stripe secure payment methods
Plan logo

-

Unlimited access to the whole content

  • Junior level content
  • Senior level content
  • Expert level content
  • Extra content
  • Question submissions

Stripe secure payment methods
Plan logo

-

Solve your doubts at any level

  • Junior level content
  • Senior level content
  • Expert level content
  • Extra content
  • 2 Question submissions per week

Stripe secure payment methods
Plan logo

-

Solve your doubts at any level

  • Junior level content
  • Senior level content
  • Expert level content
  • Extra content
  • 2 Question submissions per week

Stripe secure payment methods

0 Comments

Join the community to comment
Sign Up
I have an account
Be the first to comment

Accept Cookies

We use cookies to collect and analyze information on site performance and usage, in order to provide you with better service.

Check our Privacy Policy