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 Xamarin iOS app client

Set up push notifications for Xamarin iOS app client - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Set up push notifications for Xamarin iOS app client

- Let's add push notifications to our Xamarin Android application. The first thing we need to do is add the push notification nougat package. So we're going to open up iOS project, right click on Packages, click Add Packages, and type in microsoft appcenter dot push. And we'll select that package, and click Add Package. Once that's complete we're going to go to Entitlements.plst file, and make sure Enable Push Notifications is checked. Also, we want to view source by clicking on the source tab and making sure the value is set to production. And we'll close that up. We're also going to make a change to the info.plst, and make sure Enable Background Modes is turned on, and Remote Notifications, and we'll close that as well. And now we need to modify our AppDelegate. We're going to add a using statement at the top, so using Microsoft.AppCenter.Push, and in our Finished.Launching method, where we're starting up AppCenter, we'll go to the end of the line and say that we want to enable the…

Contents