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

android: open .pdf link in browser not os pdf viwer! #159

Closed
ramyareye opened this issue Jun 10, 2020 · 5 comments
Closed

android: open .pdf link in browser not os pdf viwer! #159

ramyareye opened this issue Jun 10, 2020 · 5 comments
Labels
question Further information is requested

Comments

@ramyareye
Copy link

Which platform(s) does your issue occur on?

  • Android

Please, provide the following version numbers that your issue occurs with:

  • CLI: latest
  • Plugin(s): latest

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.
I try to open a .pdf link from dropbox in browser but it opens os native pdf viwer!
As my file is not really a pdf but a link to the file I need to open it in browser.
How can I force my app to open this .pdf link like a normal link?

@jdnichollsc
Copy link
Member

I don't understand, what kind of link? please attach an example to be able to reproduce this issue
Can you try using Google Viewer?

const encodedUrl = encodeURIComponent(fileUrl)
const url = `https://docs.google.com/viewer?url=${encodedUrl}&embedded=true`

Regards

@jdnichollsc jdnichollsc added the question Further information is requested label Jun 12, 2020
@ramyareye
Copy link
Author

I don't understand, what kind of link? please attach an example to be able to reproduce this issue
Can you try using Google Viewer?

const encodedUrl = encodeURIComponent(fileUrl)
const url = `https://docs.google.com/viewer?url=${encodedUrl}&embedded=true`

Regards

I ended up with same solution. The problem is I couldn't open a pdf in dropbox file viewer. As I searched it's related to Android. Here is a same issue

@KingAmo
Copy link

KingAmo commented Dec 16, 2020

while I am in China, i could not reach any google services, is there a alternative way ?

@jdnichollsc
Copy link
Member

@KingAmo honestly I've no idea

@gajjartejas
Copy link

Why does not it is working in China?

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

No branches or pull requests

4 participants