Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    developer6dlab
    @developer6dlab
    but show me add to cart
    Yaroslav Petrichka
    @slavaobninsk
    You log in in Unity view?
    Maybe unity logout from you account
    Retry login
    After click on button "Toggle Download Manager"
    developer6dlab
    @developer6dlab
    ok, wait
    sorry, where is "Toggle Download Manager"?
    Yaroslav Petrichka
    @slavaobninsk
    Capture.PNG
    developer6dlab
    @developer6dlab
    ok, click on the button
    but not show me PDFReader
    Yaroslav Petrichka
    @slavaobninsk
    after log in you try refresh PDFReader market page?
    developer6dlab
    @developer6dlab
    No, after log in and refresh
    Yaroslav Petrichka
    @slavaobninsk
    Please send you order number and problem to support@unity3d.com
    Because i can't check you payment
    developer6dlab
    @developer6dlab
    was looking for this
    thanks
    Yaroslav Petrichka
    @slavaobninsk
    If they no answer during 3-4 days, send me message i rebuild unitypackege and send you by mail manually
    developer6dlab
    @developer6dlab
    ok, thank you very much
    mischaal
    @mischaal

    Hi! I've got a problem with your plugin. I've built the sample project with iOS 7.1 target.
    I get the following error:
    Undefined symbols for architecture arm64:
    "_OBJCCLASS$_MFMailComposeViewController", referenced from:
    objc-class-ref in libPDFReader.a(PDFReader.o)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    What can I do? I really need this working soon.

    Yaroslav Petrichka
    @slavaobninsk
    @mischaal import MessageUI.framework in Xcode
    and test it on real device not simulator
    Sorab Pithawala
    @sorab2142
    @slavaobninsk This plugin does not open PDF inside the Unity game on Android. It only opens it in external app. Is there a way to make it open in the app itself?
    Yaroslav Petrichka
    @slavaobninsk
    @sorab2142 Hello, no now it's implemented only for iOS, because android can provide native API
    Besjan
    @Besjan

    Hello @slavaobninsk

    We are using latest PDFReader v.1.37 but in Android 7.1.1 we are not able to load the pdf file.

    It throws this error:

    06-21 13:49:49.008 5254-5271/? I/Unity: AndroidJavaException: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.opel.OpelExclusiveAR/files/Opel_AR_Marker_60x45.pdf exposed beyond app through Intent.getData()
    android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.opel.OpelExclusiveAR/files/Opel_AR_Marker_60x45.pdf exposed beyond app through Intent.getData()
    at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
    at android.net.Uri.checkFileUriExposed(Uri.java:2346)
    at android.content.Intent.prepareToLeaveProcess(Intent.java:8965)
    at android.content.Intent.prepareToLeaveProcess(Intent.java:8926)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
    at android.app.Activity.startActivityForResult(Activity.java:4225)
    at android.app.Activity.startActivityForResult(Activity.java:4183)
    at android.app.Activity.startActivity(Activity.java:4522)
    at android.app.Activity.startActivity(Activity.java:4490)
    at com.SlavaObninsk.pdfreader.Logic.OpenDocLocal(Logic.java:57)

    Do you know how to solve it?

    Thanks

    Besjan
    @Besjan

    @slavaobninsk hi, thanks for the link.
    I tried adding in pdfreader AndroidManifest located in Plugins/Android/PDFReader/AndroidManifest.xml the following:

        <provider
              android:name="android.support.v4.content.FileProvider"
              android:authorities="com.company.appname.provider"
              android:exported="false"
              android:grantUriPermissions="true">
          <meta-data
              android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/provider_paths"/>
        </provider>

    but still throws the same error.

    I also tried adding it in the main AndroidManifest which is located in Plugins/Android/AndroidManifest.xml but then it doesn't build the app at all.

    Any other ideas?
    Thanks.

    Yaroslav Petrichka
    @slavaobninsk
    Please send more detail code, how you call method and pass paramers
    And attach decvice model
    Yaroslav Petrichka
    @slavaobninsk
    You replace it com.company.appname.provider
    to real bundle name?
    Besjan
    @Besjan
    yes, I replaced the real bundle name

    this is how is used: StartCoroutine(PDFReader.OpenDocLocal("Opel_AR_Marker_60x45"));

    the doc is in StreamingAssets

    and it fails ind Nexus9, Galaxy S6 all having Android 7.x
    Instead in another Galaxy S6 with Android 6.x is ok

    Yaroslav Petrichka
    @slavaobninsk
    Can you try it on my example in new project on Unity 5.6
    Besjan
    @Besjan

    Tried in a new project, where I added PDFReader with Unity v5.6.1 and also updated android sdk to v26, device Nexus 9 Android v7.1.1.
    With no changes, it throws the same error.
    Tried modifying AndroidManifest by adding:

        <provider
          android:name="android.support.v4.content.FileProvider"
          android:authorities="com.c.pn.provider"
          android:exported="false"
          android:grantUriPermissions="true">
          <meta-data
              android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/provider_paths"/>
        </provider>

    But it doesn't build and fails to recognize resources:

    stderr[
    AndroidManifest.xml:7: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/provider_paths').

    ]

    Yaroslav Petrichka
    @slavaobninsk
    Send screenshot with your project structure
    Besjan
    @Besjan
    I imported PDFReader in a new unity project and the only thing I changed was the bundle id: com.c.pn
    Besjan
    @Besjan
    @slavaobninsk have you actually tested it in Android 7.x? If so, can you please provide your project? Thanks.
    Yaroslav Petrichka
    @slavaobninsk
    Yes in all my customers it's work
    Yaroslav Petrichka
    @slavaobninsk
    I try it on unity 5.6.2 and it's build ok
    you can watch import process on video
    Besjan
    @Besjan
    I'll try 5.6.2, thanks for your patience.
    Besjan
    @Besjan

    @slavaobninsk

    1. Created new project with Unity v5.6.2
    2. Imported latest PDFReader
    3. Build And Run
    4. Android 5.x and 6.x works fine
    5. Android 7.x fails (specifically Nexus 9 with Android 7.1.1)
    6. Error: android.os.FileUriExposedException

    Can you please provide the apk you built in the video, so I can test your version, thanks.

    Stefano Cecere
    @StefanoCecere
    i have discovered the same problem under Android 7 ( AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference). under Android 5/6 it works well.. i applied the <provider> patch to the Manifesto.. but nothing :( i am trying building a fresh empty project with just PDFReader to see if there is some conflict with other Android plugin...
    Stefano Cecere
    @StefanoCecere
    ok in a clean project it works.. m problem is that i have 12 android plugins (mostly .aar9 in my project.. and another is overriding the main Unity Activity.. so i guess there is some conflict somewhere
    Daniel Cires
    @daniel_cires_twitter
    Hi everyone, iI try to open a local pdf location in persistentdatapath but show me this error:
    2018-02-05 08:24:56.503761+0100 3DJointsTool[308:35093] Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 nan; 812 375]' First throw call stack:
    (0x18485a364 0x183aa0528 0x18485a2ac 0x1888a68cc 0x1888985c0 0x18dd87634 0x18dd94ff0 0x18dd59e90 0x18decf3d8 0x18e09dfe4 0x106718254 0x188787710 0x18883bc5c 0x1847e8290 0x184803000 0x184802704 0x1848001d8 0x18471fe58 0x1865ccf84 0x18dd9f67c 0x102f54e5c 0x18423c56c)
    libc++abi.dylib: terminating with uncaught exception of type NSException
    and this is the code
    StartCoroutine(PDFReader.DownloadPDF(directory+orfilename, "remoteName"));
    PDFReader.OpenDocInWebViewLocal(PDFReader.PersistentDataPath + "/" + "remoteName.pdf", orfilename);
    Yaroslav Petrichka
    @slavaobninsk
    Hello please attach pdf file
    BylKus
    @BylKus

    When I use "PDFReader.OpenDocInWebViewLocal", I have the same issue as Daniel.
    When I use "PDFReader.OpenDocInMenu", I clic on "Copy to iBooks" but nothing append. I can only clic on create PDF to view the pdf.

    I use your "test.pdf" file. I'm on iPad 11.1 and Xcode 9.1.