diff --git a/firebase_admin/_messaging_encoder.py b/firebase_admin/_messaging_encoder.py index 9910e5541..85072b597 100644 --- a/firebase_admin/_messaging_encoder.py +++ b/firebase_admin/_messaging_encoder.py @@ -206,7 +206,7 @@ def encode_android(cls, android): 'ttl': cls.encode_ttl(android.ttl), 'fcm_options': cls.encode_android_fcm_options(android.fcm_options), 'direct_boot_ok': _Validators.check_boolean( - 'AndroidFCMOptions.direct_boot_ok', android.direct_boot_ok), + 'AndroidConfig.direct_boot_ok', android.direct_boot_ok), } result = cls.remove_null_values(result) priority = result.get('priority')