Sounds like a good plan. Make sure you use the full path to the file, otherwise I don’t think it will work. Other than that I don’t think the problem is Ionic related, perhaps something wrong with the application you open it with or something wrong with the file.
<button (click)="openURL('a.pdf')">Open pdf </button>
I don’t give any path. In which folder of the project the pdf file must be positioned? And when i call openURL what url i must insert? I tried with openURL('file:///android_asset/www/a.pdf') but nothing. I also don’t think the problem is Ionic related.
Well this is a forum for ionic related questions, so you might wanna try out stackoverflow or something
Where you put your pdf files and what the full path is entirely up to you. I am just trying to tell that you should make sure that you use the full path to the pdf file when you want to open it. And not just use a.pdf for example.
Is it a downloaded pdf file? Or is it something you put in your assets folder as a developer? You need to give me more info if you want me to help you.
Thank you. When i click the button <button (click)="openURL('a.pdf')">Open pdf</button> I see Acrobat Reader that runs, but after i read a message ‘cannot find the file’.
It seems a problem relative to the path of file.