From the course: Visual Studio App Center for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up push notifications for native iOS apps

Set up push notifications for native iOS apps - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Set up push notifications for native iOS apps

- Let's add push notifications to our native iOS app. We start by opening up the POD file we added when we referenced the app center SDK earlier. So we're going to open up VSACNative, and open the POD file. At the bottom, we're going to add a new pod. So it's pod, and AppCenter. Forward slash push. And close up the quote. And we're going to go to file save, and go to a terminal window and we want to make sure that we're in our native iOS project directory. So I'm going to go cd and ios, and do pod install. Now we can go back to Xcode. Next, we're going to click on the workspace and select Capabilities, and we're going to make sure that Push Notifications are enabled. So we'll turn them on, and then we're going to scroll down and make sure Background Modes is turned on, and Remote Notifications. We also need to modify the app delegate, so we'll open the app delegate file and we're going to import AppCenterPush, and where we initialize AppCenter, we're going to put in comma MSPush.self.…

Contents