Andrew Kaplan
Posts: 0
Joined: Sat Jan 03, 2015 6:57 pm

PDF on Android coming up blank. Using Appery Database.

Anyone still looking into this?

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

PDF on Android coming up blank. Using Appery Database.

Hello everyone,
when you generating link to your file it has https protocol for access, thus user, who opens it need to be loged in Appery.io Database with permission to access to this DB.
Since you are opening this link in native browser it doesn't have permission to open it.

Solution:
Use master-key to generate link to the file:
curl -X GET
https://api.appery.io/rest/1/db/files...
[?][encoded="base64"][&][sessionToken=]
[&][masterKey=]

Andrew Kaplan
Posts: 0
Joined: Sat Jan 03, 2015 6:57 pm

PDF on Android coming up blank. Using Appery Database.

Forgive me as I am new to this and have limited abilities. Can you give me a step by step on how to do this. I can get my master key. The session token looks like I need to create a REST service. Is this correct? I have shared my database and app with you if it helps. The app name is KCEMSS Protocols. I am using the StateProtocols DB. Thank you.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

PDF on Android coming up blank. Using Appery Database.

Andrew,

1) Session token you can receive after login, then save it to LSV
2) Create a rest service which finds file by name
3) on success receive file name
4) copy paste your master key from DB

then after all received/gathered you can form your url to file

Return to “Issues”