We self host Mattermost and it works well. Logs are in Postgres which is nice. Building the React Native app was not super fun but we have some experience in that already which helped.
It's a good alternative for teams unwilling to shell out every month for a Slack subscription, if you're willing to put in the work to get it setup.
If you want to get push notifications from an in-house server, you need to have your own FCM project to host the push notifications. In that case, you need to compile the app yourself.