Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading PDF, please wait #12

Open
irisat opened this issue Oct 25, 2014 · 1 comment
Open

Loading PDF, please wait #12

irisat opened this issue Oct 25, 2014 · 1 comment

Comments

@irisat
Copy link

irisat commented Oct 25, 2014

In chrome browser on PC:
simpleViewer example works fine
localFileSystem example gives error: Uncaught ReferenceError: LocalFileSystem is not defined

On Android device:
both examples behave equally: endless "loading PDF, please wait..." with loading indicator running.

Sencha Touch 2.3.1
Sencha Cmd v5.0.2.270
Cordova 3.7.0

org.apache.cordova.file 1.3.1 "File" installed

index.html:
...
script id="microloader" type="text/javascript" src=".sencha/app/microloader/development.js"></script>
script src="resources/js/pdf.js/compatibility.js"></script>
script src="resources/js/pdf.js/pdf.js"></script>
script src="resources/js/base64-binary.js"></script>
/head>

app.js copied as it is with minor changes:
name -> no spaces
requires added
var localFile = 'resources/test.pdf'

app.json
"resources": [
"resources/test.pdf"
],

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@irisat irisat changed the title bootstrap.js problem Loading PDF, please wait Oct 25, 2014
@irisat
Copy link
Author

irisat commented Oct 25, 2014

for localFileSystem example:

alert: File Error:
alert: NOT_FOUND_ERR

I've tried:
var localFile = './../www/myApp/resources/test.pdf';
var localFile = './../myApp/resources/test.pdf';
window.resolveLocalFileSystemURI("file:///test.pdf", gotFileEntry, fail);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant