Code Monkey home page Code Monkey logo

Comments (19)

pwlin avatar pwlin commented on July 20, 2024

Unfortunately I don't have an iOS9 device to test. Do you have standard Adobe Acrobat Reader Installed on your device? If not, can you please install it from app store and see if that works?

from cordova-plugin-file-opener2.

aanyun avatar aanyun commented on July 20, 2024

I have the same problem. Even after I installed some PDF reader. None of them work except the iMessage can attach the PDF correctly.

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on July 20, 2024

Did you try with Adobe Acrobat Reader?

from cordova-plugin-file-opener2.

aanyun avatar aanyun commented on July 20, 2024

Yes.

from cordova-plugin-file-opener2.

azn1viet avatar azn1viet commented on July 20, 2024

Right. Nothing else working but only iMessage on iOS 9

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on July 20, 2024

So it looks like Apple butchered this plugin completely with the latest updates. I will try to find an iDevice with iOS9 so I can do some tests.

from cordova-plugin-file-opener2.

bartvanvelden avatar bartvanvelden commented on July 20, 2024

Great! Any clue yet what is going wrong?

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on July 20, 2024

I think at this point it's pretty clear that people are using this plugin commercially in all kinds of apps :) Which is pretty amazing and something I am really proud of.

I wish I could help you immediately with fixing this issue, but unfortunately I still didn't get any free time to borrow an iDevice from a friend and test this issue. At the moment I am only using the Android part of this plugin and that still works flawlessly.

Maybe someone with an actual iOS9 device can look into this and send a pull request?

Or maybe a company that is using this plugin can hire an Objective-C programmer for a couple of hours and fix this issue and then send a pull request?

If you fix the issue, I will gladly add your name/logo in README.md file as sponsor/contributor.

from cordova-plugin-file-opener2.

bartvanvelden avatar bartvanvelden commented on July 20, 2024

I have tested some things using Xcode. Our App downloads and stores various document types which can be opened with external apps. For this we use the Cordova file and file-transfer plugins. This part seems to be doing well. In the file-opener2 no exceptions or warnings are raised. Various inspections of the URLs show no change between iOS 8 en 9. In the plugin the launching of the external app seems to run without problem, although in the end nothing happens... I tested on both cordova-ios 3.9.1 and the yet unreleased 4.0.0.

from cordova-plugin-file-opener2.

Rovi23 avatar Rovi23 commented on July 20, 2024

We've fixed this issue in Pull Request: #42

from cordova-plugin-file-opener2.

bartvanvelden avatar bartvanvelden commented on July 20, 2024

awesome, @Rovi23 & @josemanuelbd, thanks!

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on July 20, 2024

Thank you very much @Rovi23 and @josemanuelbd, I added you to the Contributors section in README.md file.

I also bumped the version to 2.0.0, cleared up README.md file, and pushed this new version to both Github and NPM. Please completely remove the old version of the plugin and add it again just to be safe.

Please continue testing the plugin and if there is any problem, just let me know.

@bartvanvelden thanks for your earlier testings :)

from cordova-plugin-file-opener2.

azn1viet avatar azn1viet commented on July 20, 2024

It's confirmed that the plugin works great with iOS 9 for all the PDF apps registered with iOS system except Facebook Messenger. Not sure why this messenger registered with iOS system but can't handle the job. Btw, thanks all for the great plugin and fast work.

from cordova-plugin-file-opener2.

Choppel avatar Choppel commented on July 20, 2024

Hi, first of all - great plugin. Worked very good on Android and iOS so far.
I updated our iPhone 5c to iOS 9 recently. Since then I have the same issue as described by others.

The problem is, that updating the plugin did not work as expected. The problem persists (see screenshot attached).

screen shot 2015-10-06 at 11 29 28

I tried reinstalling nearly everything (Adobe, fileopener2, iOS Cordova Platform). The code of the plugin in XCode matches the one on github. So I assume it's not a local problem.

Does anybody have a clue?

from cordova-plugin-file-opener2.

azn1viet avatar azn1viet commented on July 20, 2024

Did you do the command: cordova rm old_plug_in and cordova add new_plug_in?

from cordova-plugin-file-opener2.

Choppel avatar Choppel commented on July 20, 2024

I suppose that in between ranting and shouting at my Mac I issued a remove and add of the plugin. πŸ˜„ I didn't keep step of what I did exactly. As I said, the source code in the Xcode Project is the same as on Github.

But maybe I am mistaken. I thought that, while testing, I clicked on "Copy to Acrobat Reader" and nothing happened. I also thought that this is not the correct button to be displayed. Now, whatsoever, it successfully opens the file when clicking on this button. Which confuses me for I thought on iOS 8 there was an option "Open with Adobe" where it opened the file in Acrobat. Right? Or was it always "Copy to Adobe Acrobat"?

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on July 20, 2024

@Choppel: "Copy to ..." is the default iOS 9 action, as opposed to "Open with ..." which was on iOS 8 and earlier.

from cordova-plugin-file-opener2.

Choppel avatar Choppel commented on July 20, 2024

Thanks for the info. Working like a charm on iOS now.
Looking into Windows Phone 8.1 right now. Maybe I can get it to work.

from cordova-plugin-file-opener2.

josemanuelbd avatar josemanuelbd commented on July 20, 2024

@Choppel Here you are my implementation on windows8.1:
https://github.com/josemanuelbd/cordova-tips-and-tricks/blob/master/windows8.1/open-external-files.js

from cordova-plugin-file-opener2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.