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
demandé il y a un an94 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions