Hi,
I am an android developer for 5+ years, working with the android studio (java), MySQL,firebase and Php.
I read your requirement and understood it completely.
I have already done such implementation in my many projects.
I can fix this problem in few hrs.
Message me to understand it a better and start working.
Thank you
Snehal