Advanced_Android_Development icon indicating copy to clipboard operation
Advanced_Android_Development copied to clipboard

5.04 receiving a message

Open NTonani opened this issue 9 years ago • 0 comments

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: weatheralertnotification_fcm

NTonani avatar Dec 01 '16 05:12 NTonani