alunny / ChildBrowser

cross-platform ChildBrowser plugin for PhoneGap/Cordova
104 stars 134 forks source link

plugin does not work with PDF's on an Android #33

Open 29er opened 11 years ago

29er commented 11 years ago

Has anyone succesfully gotten this to work, a PDF on an Android. specifically a local PDF, not a web url ? It works fine on iOS but Android it is just a blank screen. Thanks

cemerson commented 11 years ago

I feel your pain man. I'm working on a couple hacks of childbrowser for this purpose. Feel free to take a look at what I've got (only tested/geared towards iOS at the moment) - it can do what you're looking for but may need some clean-up/hacking for Android use. It's my first repo btw so apologies if its got "noob" written all over it.

https://github.com/cemerson/cordova-pdfbrowser

29er commented 11 years ago

awesome ! I will give it a shot. thanks Chris ! Quick question, do I need to have a PDF viewer installed on the android for this to work?. I was looking at the WebIntent plugin, combined with having Adobe PDF viewer installed on my galaxy s3. I was going to see if that works too. Thanks for any info .

Doug

On May 1, 2013, at 10:54 AM, Chris Emerson wrote:

I feel your pain man. I'm working on a couple hacks of childbrowser for this purpose. Feel free to take a look at what I've got (only tested/geared towards iOS at the moment) - it can do what you're looking for but may need some clean-up/hacking for Android use. It's my first repo btw so apologies if its got "noob" written all over it.

https://github.com/cemerson/cordova-pdfbrowser

— Reply to this email directly or view it on GitHub.

cemerson commented 11 years ago

AFAIK no you don’t. My hack of the childbrowser thing uses the native (webkit?) parsing of PDFs (Android has that too yes?) … my version just has some adjustments to handle PDFs instead of URLs.


Chris Emerson | 919-335-8480

From: Doug Wood [mailto:notifications@github.com] Sent: Wednesday, May 01, 2013 1:11 PM To: alunny/ChildBrowser Cc: Chris Emerson Subject: Re: [ChildBrowser] plugin does not work with PDF's on an Android (#33)

awesome ! I will give it a shot. thanks Chris ! Quick question, do I need to have a PDF viewer installed on the android for this to work?. I was looking at the WebIntent plugin, combined with having Adobe PDF viewer installed on my galaxy s3. I was going to see if that works too. Thanks for any info .

Doug

On May 1, 2013, at 10:54 AM, Chris Emerson wrote:

I feel your pain man. I'm working on a couple hacks of childbrowser for this purpose. Feel free to take a look at what I've got (only tested/geared towards iOS at the moment) - it can do what you're looking for but may need some clean-up/hacking for Android use. It's my first repo btw so apologies if its got "noob" written all over it.

https://github.com/cemerson/cordova-pdfbrowser

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/alunny/ChildBrowser/issues/33#issuecomment-17292584.

29er commented 11 years ago

gotcha, thanks. I am gonna give it a shot.

On May 1, 2013, at 11:13 AM, Chris Emerson wrote:

AFAIK no you don’t. My hack of the childbrowser thing uses the native (webkit?) parsing of PDFs (Android has that too yes?) … my version just has some adjustments to handle PDFs instead of URLs.


Chris Emerson | 919-335-8480

From: Doug Wood [mailto:notifications@github.com] Sent: Wednesday, May 01, 2013 1:11 PM To: alunny/ChildBrowser Cc: Chris Emerson Subject: Re: [ChildBrowser] plugin does not work with PDF's on an Android (#33)

awesome ! I will give it a shot. thanks Chris ! Quick question, do I need to have a PDF viewer installed on the android for this to work?. I was looking at the WebIntent plugin, combined with having Adobe PDF viewer installed on my galaxy s3. I was going to see if that works too. Thanks for any info .

Doug

On May 1, 2013, at 10:54 AM, Chris Emerson wrote:

I feel your pain man. I'm working on a couple hacks of childbrowser for this purpose. Feel free to take a look at what I've got (only tested/geared towards iOS at the moment) - it can do what you're looking for but may need some clean-up/hacking for Android use. It's my first repo btw so apologies if its got "noob" written all over it.

https://github.com/cemerson/cordova-pdfbrowser

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/alunny/ChildBrowser/issues/33#issuecomment-17292584. — Reply to this email directly or view it on GitHub.