'Android app automatically update from playStore without knowing or user interaction when wifi is on

I have an app in playStore.I want, when I publish new version of that app in playStore, it automatically update without user interaction like: Facebbok,Messanger,Instagram,Amazon apps.

I know android have a core library which appear dialog when new version published but I don't want to use it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source