Push notifications will allow the softphone to wake-up on incoming call or chat even if the device is sleeping or the app is closed. The Android softphone already has a built-in FCM profile which should be fine for trial usage however, for more serious production usage you might configure your own project. Firebase Cloud Messaging (FCM) is a free service by Google.
Step by step instructions:
There are multiple ways to handle push notifications:
More help: