From the course: Visual Studio App Center for Developers

Unlock the full course today

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

Push notification server setup for Xamarin Android

Push notification server setup for Xamarin Android - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Push notification server setup for Xamarin Android

- [Instructor] Visual Studio App Center notifications use a native platform notification service, Firebase. To start, we're going to add a project and we will call it VSACXamarin and we'll click Create Project. Now I'm going to click on the gear and go to Project settings. Under the Cloud Messaging tab, we're going to copy the Sender Key to the clipboard. With the Sender ID in the clipboard, we're going to go to Visual Studio. We have to set up the Sender ID in the main activity before we start App Center. So to do that, we're going to add a new line before AppCenter.Start and we're going to say Push.SetSenderID and inside there we're going to paste in the value that we got out of the Firebase console and put a semicolon at the end of the line. Now we'll go to File and Save and now we'll go into Sourcetree. Inside Sourcetree, we'll commit our changes to the Android project file. Make sure our files are selected and press Commit. While this is building, we can go back to the Firebase…

Contents