Web view not working on android correctly

I’m testing an app on the Play Store and when I use Web View to view a PDF file, it automatically downloads it and doesn’t display it. When I see it from preview, it works fine but the app in the play store works differently.
I don’t know if you know any solution or if I’m configuring something incorrectly.
Thank you

Hello, in order to avoid downloading the file immediately, you can display the PDF through a Google drive link. This way, it won’t download the file immediately and it will open the file to viewer mode first.

Thank you!