Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Yaroslav Petrichka
    @slavaobninsk
    Share you problems or offsers about PDFReader
    developer6dlab
    @developer6dlab
    Hello, writting for PDFReader unity asset
    Yaroslav Petrichka
    @slavaobninsk
    Hello can you try open it in Unity application?
    developer6dlab
    @developer6dlab
    I to try open from unity application
    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.