Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

How to open PDF file in iOS?

Discussion in 'iOS and tvOS' started by henryPowellx42x, Jul 4, 2023.

  1. henryPowellx42x

    henryPowellx42x

    Joined:
    May 5, 2023
    Posts:
    3
    I have application on Android. I want to convert it to iOS. I made this in Unity. There is one problem. I can't open pdf file in iOS.

    UnityAndroidOpenUrl.AndroidOpenUrl.OpenFile(path, "application/pdf");


    This is the code line for Android. I can open pdf file with this line. Application.OpenURL doesn't work with local files.

    How can i do it this for iOS?