Hi,
I want to open a local pdf file in alloy project
I have a folder named files in app folder. app -> files -> folder -> file.pdf
here the code i write to open file :
var filepath = Ti.Filesystem.resourcesDirectory + '/files/folder/file.pdf'; $.mywebview.url = filepathi tested too with :
var filepath = Ti.Filesystem.resourcesDirectory + 'files/folder/file.pdf'; or var filepath = Ti.Filesystem.applicationDataDirectory + 'files/folder/file.pdf'; or var filepath = Ti.Filesystem.applicationDataDirectory + '/files/folder/file.pdf';and tried to use data property in webview an read file without result...
any help ?
thank you.