Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Specify badge in aps key, and put your data in some other key. So if you're using badge numbers, recalculate the correct badge number, if you're not using them, just send 0.</p> <p>From Apple docs:</p> <blockquote> <p>Providers can specify custom payload values outside the Apple-reserved aps namespace. Custom values must use the JSON structured and primitive types: dictionary (object), array, string, number, and Boolean. You should not include customer information as custom payload data. Instead, use it for such purposes as setting context (for the user interface) or internal metrics. For example, a custom payload value might be a conversation identifier for use by an instant-message client application or a timestamp identifying when the provider sent the notification. Any action associated with an alert message should not be destructive—for example, deleting data on the device.</p> </blockquote> <p>But there is a catch - this will only work if app is running.</p> <p>The way it works is - If app is running, you get a notification via didReceiveRemoteNotification callback with the payload data. You can extract your custom data here. However if app is not running, normally an alert is displayed and your app is notified <em>only</em> if user taps on it. Since you don't want to display an alert - there is <em>no way</em> for you to get custom payload data when app is not running. When you think about it, it'll be pretty scary for the user if apps started up on their own. :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload