PDF download approach

Hi I am new and looking for a reference to know the correct way to call Rest API and download PDF in android.
I tried FileSaver.saveAs function but it worked in from browser but not in mobile app. Appreciate your help.