Cannot display pdf.(Filename is of invalid format). Getting this error for native mobile app on android device

Hi, I have a feature in mobile app where user can download the page content in PDF format. For this I am generating a PDF document and synchronizing with device and then downloading the file. This is working fine on iOS device. But same flow is not working with android device . getting error  Cannot display pdf.(Filename is of invalid format).  when the file gets downloaded on device. File is not opening from device files storage as well.    Does anyone know about this strange issue? for android do we need different configuration?
1 answers

can you give us an example of the filename? my first thought is its using some kind of invalid character or the filename is malformed