Linking firebase and mongodb

We are making an android application with mongodb as database but obviously firebase has a lot of features(currently) like mlkit, push notifications etc how can i use these features with the data stored in mongodb