Code Monkey home page Code Monkey logo

Comments (3)

pwlin avatar pwlin commented on August 21, 2024

On iOS, people usually use HTML5's FileSystem API and get an entry.toURL() reference and open it from there. Look in other open and closed issues in this repo, There are some examples written by other users.

from cordova-plugin-file-opener2.

limbenjamin avatar limbenjamin commented on August 21, 2024

Thanks, figured that you need an if/else statement and a separate set of code to deal with iOS and android. Not possible to have same code running on both platforms.

$ionicPlatform.ready(function()
    {
        $scope.openPDF= function($path) {
            var path = $path;

            if (ionic.Platform.isAndroid()){

            }else if(ionic.Platform.isIOS()){

            }else{

            }
        };   
    });

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on August 21, 2024

That's great. Good luck!

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.