Pinpoint push notifications on Android

0

Using Pinpoint and Amplify I've been able to send push notifications to an Android device running my app, but I'm not completely happy with how it works.

If I send a notification while the phone is in sleep mode, the screen does wake up to show it, although at a very low brightness level, which is not something I intentionally configured.

However if I send the notification while the device is awake, there is no visible indication that a notification has been received, whether my app is running or not. The only way I know it worked is if I dig into the notification history.

I'd also like to be able to put my own handler into my app to receive notifications. In the old days when we used to hand-roll our notifications we'd have our own FirebaseMessagingService, but the instructions for setting this up with Pinpoint directed me to register "com.amplifyframework.pushnotifications.pinpoint.FCMPushNotificationService" as the message handler. Can I replace this with my own handler or a subclass?

Thanks.

Frank
posta un anno fa94 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande