Skip to main content
100%

Gist bc0b0435c4549d7900933b98ff3b2754

✓ Published0🌍 Public
Aandrewxhill
Last edited Jul 11, 2017
Created on May 31, 2017

This example demonstrates how to register a context-aware notification subscription using the SetSDK. The code calls `SetSDK.register(context:beforeCommute)` and defines an event handler that sends a local notification. Inside the handler, it creates a `UNMutableNotificationContent` object, sets its title to "Weather Alert!", and prepares to deliver new information or opportunities. The example uses the UserNotifications framework for local notifications and the SetSDK’s context-registration API to trigger the alert based on the user’s commute timing.

AI-generated description

Similar vizzes