-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Android version 5.1.1, plugin not working #72
Comments
Basically I have no idea what Android versions actually supported. pdfrx depends on bblanchon/pdfium-binaries and searching the source code shows me it uses:
And, according to NDK r25c releasenote, it still supports APIs 19 and 20. (It seems SDK r26 removes the support). So,
pdfrx does not specify any explicit NDK version and And Android 5.1.1 is 22. Is is really a Android version error?? Anyway, the screen explains that the library is correctly loaded but FPDF_InitLibraryWithConfig is not found. By the way, the error screen can be replaced if you implement PdfViewerParams.errorBannerBuilder. |
Hi @espresso3389, as now I am only using the Let me know if the solution is feasible, else I will have to use |
I found a post:
So the final answer is; pdfrx runs on API 24+ or later. |
According to several statistics, Android 5/6 share is smaller than 3%. It's not worth supporting them. |
Because the deprecation starts on Oct 2022, the releases before pdfium-binaries 5323 may be frx the issue. So creating a fork that changes the release version to them may work. |
I've tested PDFium 106.0.5215.0 with patching
and run it on API 22 simulator. And the result is same. It does not find |
Interesting things here is that FPDF_InitLibrary, FPDF_GetPageCount, FPDF_GetDocPermissions can be called correctly. Apparently functions such as FPDF_InitLibrary and FPDF_GetSecurityHandlerRevision calls some Android API functions that is not supported on API 22. I didn't have time to investigate the issue further. So anyway, currently I cannot support Android API 22. |
Thanks a lot @espresso3389 for the |
Screenshot that I received from my Production App user:
So my question is, is the plugin compatible with Android 5?
The text was updated successfully, but these errors were encountered: