iOS 12 Notification Features

iOS 12 brings several new features to Local and Push Notifications.

Provisional Push Notifications

One of the most exciting new features of iOS 12 is the ability to send notifications on a 'provisional' basis.

Provisional push notifications do not require you to request permissions from the user!

ios 12 notification center
Figure 1. A Provisional Push Notification

Provisional notifications are shown only in the Notification Center, but not on the Lock Screen. They also offer the user the opportunity to turn off notifications from the app, or change the notifications to be delivered prominently.

The user will be prompted to confirm their choice if they press either button.

ios 12 keep
Figure 2. Confirming 'Keep…​'
ios 12 turn off
Figure 3. Confirming 'Turn Off…​'
If you have any questions about Provisional Push Notifications, contact your Teak account rep.

What Does 'Deliver Prominently' Mean?

Deliver Prominently means that the notification will show on the Lock Screen, in the Notification Center, and Banners. It will also play a sound and badge the app when it arrives.

In other words, it will work exactly like push notifications have worked before iOS 12.

This is what the Settings look like for notifications delivered prominently.

ios 12 prominent
Figure 4. Deliver Prominently

What Does 'Deliver Quietly' Mean?

Deliver Quietly means that the notification will only show up in the Notification Center. The user will not be alerted via sound or vibration when the notification arrives.

In other words, it will work just like a Provisional Notification, except it won’t include the 'Keep…​' or 'Turn off…​' buttons.

This is what the Settings look like for a notification delivered quietly. The differences between 'Deliver Quietly' and 'Deliver Prominently' are circled.

ios 12 quiet
Figure 5. Deliver Quietly

Interesting Observed Behaviors

If a user is prompted to explicitly authorize notifications, and they are sent a notification while they still have a provisional notification, both notifications will display in the Notification Center, and the notifications sent with provisional authorization will still display the buttons prompting the user.

ios 12 provisional and authorized

These buttons will perform the described actions if pressed, overwriting the current (authorized) status.

Using Provisional Push Notifications

You can use Provisional Notification functionality, even if you do not use a version of Unity which supports the new features, by using a method exposed by the Teak SDK.

Please contact your Teak account rep before using this functionality.

Unity

Register for Provisional Push Notifications.

bool RegisterForProvisionalNotifications();

This method only has any effect on iOS devices running iOS 12 or higher.

Notification Stacking

In iOS 12, subsequent notifications from the same app will be displayed in an abridged form. Notifications will be stacked in the order they were received, with the most recent notification always be displayed at the top of the stack.

This is an example of how they will look, both stacked and expanded.

ios 12 stacked
Figure 6. Stacked
ios 12 expanded
Figure 7. Expanded
Provisional notifications also use this behavior, with only the final item displayed in the list showing the prompt buttons.