Image for post
Image for post

In previous article, we find out how to show a dynamic notification, In this article we want to add response to our local notifications.

Set Up Local Notifications:

First of all, we should set local notifications, I use my previous project, where we want to set notification category we should add actions to notification:

Image for post
Image for post

I wanted to show a dynamic notification on a standalone watchOS App, and none of the available articles about this worked for me! So I decided to write this article.

what we are going to do? first of all, creating a project; then , setting up local notifications, setting up dynamic views; and finally, showing dynamic notifications.

Set Up an Apple Watch project:

open Xcode and select “create a new Xcode project”, select “WatchOS” Tap and “Watch App” and then click on “Next”.

Hamidreza Farzi

iOS Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store