[android-components](../../index.md) / [mozilla.components.feature.push](../index.md) / [AutoPushFeature](index.md) / [onMessageReceived](./on-message-received.md)

# onMessageReceived

`fun onMessageReceived(message: `[`EncryptedPushMessage`](../../mozilla.components.concept.push/-encrypted-push-message/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/push/src/main/java/mozilla/components/feature/push/AutoPushFeature.kt#L165)

Overrides [PushProcessor.onMessageReceived](../../mozilla.components.concept.push/-push-processor/on-message-received.md)

New encrypted messages received from a supported push messaging service.

