Case:
In android i use
import {openFile} from "tns-core-modules/utils/utils"
openFile(path)
to open a *.pdf file from downloads folder. This works like charm with one problem.
Problem: a list of all apps which can open a pdf file is opened. If i select google pdf viewer, the file opens correctly. If I close and reopen, again I first have to select the google pdf viewer before the file opens. That is, it doesn't remember my choice.
If I open the same file with the android downloads app, I get an option to to always select google pdf viewer as the app to open this file. This works as intended. Trying openFile again after this option is set still opens the app list and does not open the file at once.
I tried also with other apps which were set as default app in the android settings. Also in that case openFile does not use the setting for the default app: in all cases you must select the app to use first. Only if there is only one app, then it opens at once.
As this is not a bug but an enhancement to the existing logic, I am marking this issue as a feature request
аnd as a good-first-issue.
NickIliev
changed the title
openFile does not open default app
[Feature] The method openFile should remember the default app (if one is chosen)
Jul 1, 2019
Thank youOp 17 sep. 2019 05:46 schreef Trevor Montgomery <notifications@github.com>:I would love to work on this Feature if no one else is!
Thanks :)
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
Case:
In android i use
import {openFile} from "tns-core-modules/utils/utils"
openFile(path)
to open a *.pdf file from downloads folder. This works like charm with one problem.
Problem: a list of all apps which can open a pdf file is opened. If i select google pdf viewer, the file opens correctly. If I close and reopen, again I first have to select the google pdf viewer before the file opens. That is, it doesn't remember my choice.
If I open the same file with the android downloads app, I get an option to to always select google pdf viewer as the app to open this file. This works as intended. Trying openFile again after this option is set still opens the app list and does not open the file at once.
I tried also with other apps which were set as default app in the android settings. Also in that case openFile does not use the setting for the default app: in all cases you must select the app to use first. Only if there is only one app, then it opens at once.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: