on-internet
← Community

Notification Service in android when app is in background

Stack Overflow ·

I am building an e-commerce app using Android Kotlin Jetpack Compose with Admin Panel. If an admin updates the status of order, how will my android app know the status of the order to send a push notification? My notifications are working when the app is in awake mode and places an order. I want push notifications like amazon and flipkart; it should always show a notification of order status even if the app is not running in the foreground. Here is my code implemented for notification: class MyFirebaseService : FirebaseMessagingService() { override fun onNewToken(token: String) { super.onNewTo

Comments

Sign in or sign up to comment and upvote.

No comments yet.