Advanced_Android_Development
Advanced_Android_Development copied to clipboard
5.04 receiving a message
Since GCM has been deprecated, I've updated the final branch of lesson 5 with FCM source. This way, students can check 5.04 out to run the final quiz 'See it run'.
Updates
- Removal of RegistrationIntentService.java
- FCM library auto-registers
- Updated AndroidManifest.xml
- GCM specific permissions removed - FCM library handles adding permissions
- Services updated for FCM
- Updated build.gradle project/module
- Project level - updated google-services version to 3.0
- Module level - added FCM dependencies and play-services for GoogleApiAvailability; moved applying google-services plugin to bottom of build file
- Updated MainActivity.java to no longer register token if it doesn't exist since handled by FCM. The checkPlayServices() method is still called to notify the user if a conflict exists that can be dealt with.
Testing
- Tested 'See it run' quiz using: http://udacity.github.io/Advanced_Android_Development/.
- Received notification:
- Received notification: