pwlin / cordova-plugin-file-opener2

A File Opener Plugin for Cordova
MIT License
314 stars 587 forks source link

AndroidQ support #281

Closed yangfande362 closed 4 years ago

yangfande362 commented 4 years ago

Expected Behaviour

succeed open apk then finished installation.

Actual Behaviour

when step to "File.exists()", get "false" then return a failure which says "file not found"

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 10

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

huawei Honor v20

Cordova CLI info

E:\hello>cordova -v 8.1.2 (cordova-lib@8.1.1)

E:\hello>cordova info Collecting Data...

Node version: v4.4.3

Cordova version: 8.1.1

Config.xml file:

<?xml version='1.0' encoding='utf-8'?>

HelloCordova A sample Apache Cordova application that responds to the deviceready event. Apache Cordova Team

Plugins:

cordova-plugin-camera,cordova-plugin-compat,cordova-plugin-file,cordova-plugin-file-opener2,cordova-plugin-file-transfer,cordova-plugin-whitelist

Android platform:


The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat


Invoking "D:\android-sdk-windows\tools\bin\avdmanager" list target

Available Android targets:==============] 100% Fetch remote repository...

id: 1 or "android-14" Name: Android API 14 Type: Platform API level: 14 Revision: 4

id: 2 or "android-20" Name: Android API 20 Type: Platform API level: 20 Revision: 2

id: 3 or "android-22" Name: Android API 22 Type: Platform API level: 22 Revision: 2

id: 4 or "Google Inc.:Google APIs:24" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Google APIs, Android 24 Based on Android 7.0 (API level 24) Libraries:

Here is the output:

Plugin version

cordova plugin version | grep cordova-plugin-file-opener2

Here is the output: cordova-plugin-file-opener2 2.2.1 "File Opener2"

Sample Code that illustrates the problem

Logs taken while reproducing problem

yangfande362 commented 4 years ago

while update plugin to 3.0.0,this question has resovled。