I recently provided a detailed overview, instructions and code samples for the implementation of the PWA installation using an Install button. You may find it useful. Please see my answer.