Send Update An App

Hello, I can send update notifications to my application using Firebase Realtime Database, but when the update arrives and the notification panel for the update is opened, how can I ensure that the download starts automatically when the “update” button is choiced?