Hey i have some questions about back press

Hey when i press back in another screen of another app like i have implemented share to friends with whatsapp feature but if they not share and simpy came back and get premium features of my app then how can i caught them.
I don’t know how to implement play billing please help

you will be add the premium feature in the your app for billing ?