-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
android 13,open apk crash #44
Comments
I've got the same issue while trying to open a file on my physical android device. I've tested it also in iOS but that seems to work fine.
the localUrl is an pdf hosted on our internal server. the contentType is application/pdf. The device crashes and returns to the desktop/home when trying to open the file. When I try to open a local image, I get the same result. It seems like there's a NullPointerException from line 33 from FileOpenerPlugin.java
Smartphone (please complete the following information):
|
@ZhangHuay The problem is that you are passing the wrong param. The parameter with the file path is |
@kfvv NullPointerException will be thrown if the Please make sure that you provide |
Closing as this is not the plugin problem. Added this #46 to avoid plugin/app crash if require param(s) are not provided. |
Describe the bug
Real machine running, android 13, use FileOpener.open to open the apk file crashes
To Reproduce
import { FileOpener } from "@capacitor-community/file-opener";
FileOpener.open({
path:path,#path is the real path file:///data/user/0/...../app.release.apk
contentType: 'application/octet-stream',
})
You can find this apk in the directory but The calling method will return to the desktop
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: