Today we're introducing new device-level metadata for tracking per-device locale and timezones for push channel data. Previously, push channel data was limited to tracking only tokens. Now, with device-level metadata, you can attach an additional timezone and locale field along with your token, and Knock will automatically evaluate them when sending push notifications.
Here's how it works:
- Using the per-device
localeyou can localize push notification content to what your user's device has configured, taking precedence from thelocalestored on the user. That means if your device is set toen-GBbut your user hasen-USon their user properties, any push notifications sent to the device will be generated in British english. - Similarly, using the per-device
timezoneyou can control the precise send windows for when a particular device for a user should receive a push notification. This per-device value takes precedence over the user property.
Our client-side mobile SDKs have been updated with the ability automatically set this data for each device, or if you're using our API directly, you can replace the call to set tokens with a list of devices.
{
"devices": [
{
"token": "user_device_token_1",
"locale": "en-US",
"timezone": "America/New_York"
}
]
}Push device metadata is available today for all customers. You can read more in our documentation.
Fixes and improvements
- π [Dashboard/mAPI/CLI] You can now opt into a private beta of branching. Head to your "Settings > Branches" page to request access.
- π [Dashboard] We added the ability to see all subscriptions that a user has from the users detail page.
- π [Notification engine] We fixed an issue with our workflow trigger function where some child workflows were not running.
- π [API] We now expose a
channelattached to each message produced from the API and sent via webhooks. - π [mAPI] You can now filter commits by one or more
resource_type(like workflow) to show all commits associated to that type of resource. - π [Notification engine] We added a new
compare_versionsliquid filter. - π [Notification engine] We now send
workflow_categoryas a tag to Datadog and NewRelic when reporting metrics. - π [Dashboard] You can now see the "Last login at" for the members of your account.



















