Join Kevin Ford for an in-depth discussion in this video Push notification server setup for Xamarin Android, part of Visual Studio App Center for Developers.
- [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 console. In the Firebase console, we want to copy the Server Key to the clipboard as well.
From there we're going to go into the Visual Studio App Center. In Visual Studio App Center, we're going to go to our Xamarin Android application and then Push Notifications. Then we're going to click the Next button and Next again and paste in the Server Key and press Done. We've now tied Visual Studio App Service to our app that we set up in Firebase. Now we want to run our app on an emulator.
Sending push notifications through App Center is the same regardless of platform or development language. So we're going to do this once at the end of the chapter.
- Adding applications to the VSAC
- Using custom build scripts
- Creating iOS and Android builds
- Creating UI tests
- Automating tests
- Distributing apps
- Examining crash logs and analytics
- Adding push notifications
- Using CodePush for deployments
Skill Level Intermediate
Visual Studio Code for Web Developerswith Joe Marini1h 21m Intermediate
1. Introduction to Visual Studio App Center
2. Creating Builds
3. Test Runs
4. App Distribution
5. Crash Reporting and Analytics
6. Push Notifications
7. Code Push
Set up code push frequency3m 44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.