Widevine DRM not supported on this device: AWS SNS Mobile Push notification

3.3k Views Asked by At

Getting "Widevine DRM not supported on this device" exception when pushing a notification from AWS SNS to Android Emulator.

Steps followed

  1. Developed Android mobile app and running in Android Emulator API 19
  2. Registered my APP in Firebase of Google Cloud and can send notification to my mobile app from Firebase console.
  3. Registered in AWS Cloud and SNS Service.
  4. Downloaded java code from SNS Sample Application and provided all details required form GCM + Android
  5. Used SNSMobilePush.java class to push sample notifications (SampleMessageGenerator.getSampleAndroidMessage()) to my running mobile emulator app
  6. No notification found in Android.
  7. Checked Android logs and found "Widevine DRM not supported on this device android.media.UnsupportedSchemeException: Failed to instantiate drm object." exception.

Any idea about this issue?

1

There are 1 best solutions below

0
On BEST ANSWER

Notification doesn't work for emulators. We have to run the app on actual device to test notifications.