I think this question may be of help
Thanks for you reply. But I was able to fix the issue. The problem was that I created entity Document generalization from System.FileDocument. but I didn't have any attributes in it. Later when I added attribute filename to the entity I created the issue was fixed and I was able to open the document in mobile app as well.