- [Instructor] Let's add push notifications…to a native Android application.…So we're going to go to our build gradle file…under Gradle Scripts,…build gradle,…and the version for our module.…And in dependencies,…we're going to add a new line,…and let's compile space,…and it'll be com.microsoft.appcenter,…and then a colon,…and appcenter minus push,…and then a colon,…and we're going to make that the appCenterSdkVersion,…so I'm going to copy it from the line before…and paste that in.…
And now we're going to sync our Gradle build…by clicking Sync Now.…We also need to modify our MainActivity,…so we're going to go into the app…and Java…and open up our MainActivity…and add a new import.…So that's going to be import com.microsoft.appcenter.push…and Push,…semicolon at the end.…And we'll scroll down to our onCreate,…and where we have our AppCenter.start,…we're going to start the push service, as well.…
So we'll do comma Push.class.…
Author
Released
3/13/2018- 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
Duration
Views
Related Courses
-
Visual Studio Code for Web Developers
with Joe Marini1h 21m Intermediate
-
Introduction
-
Welcome1m 34s
-
What you should know1m 43s
-
Using the exercise files4m 6s
-
Set up Android Keystore2m 45s
-
-
1. Introduction to Visual Studio App Center
-
The VSAC web portal3m 16s
-
Adding organizations3m 5s
-
Adding applications2m 50s
-
2. Creating Builds
-
Signing builds: iOS4m 30s
-
Signing builds: Android1m 35s
-
Custom build scripts1m 57s
-
Using custom build scripts5m 43s
-
Environment variables6m 28s
-
Create iOS CI builds4m 36s
-
Create iOS CD builds2m 3s
-
Create Android CI builds2m 47s
-
Create Android CD builds1m 18s
-
3. Test Runs
-
Create UI tests2m 32s
-
Set up the App Center CLI2m 30s
-
Automate a test with the CLI2m 59s
-
Using CLI in a script1m 50s
-
-
4. App Distribution
-
Set up distribution groups2m 41s
-
Install the apps on devices1m 48s
-
Register iOS devices3m 54s
-
5. Crash Reporting and Analytics
-
Examine crash logs3m 32s
-
Add custom analytics3m 23s
-
Examine analytics3m 50s
-
6. Push Notifications
-
7. Code Push
-
Set up code push frequency3m 44s
-
Conclusion
-
Next steps51s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Add push notifications to native Android apps