-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Including ui-document-picker breaks navigation #20
Comments
@BikeBr0 ok so i ran some test. The issue lies actually within N not being compatible with latest androidx fragment lib. |
Thanks for getting back to me @farfromrefug. I suspect this plugin did/does work for a lot of developers though. I have @nativescript/android version 8.1.1 in package.json. Can I downgrade that to a previously known working version or will that break the project? I ask because my actual project works just fine and only has issues with this plugin. For example:
Do not cause problems. Cheers, |
i think rhe issue is that because of this plugin newer native deps were required which N does not support yet. did you try N 8.2.0 alpha? |
I'm not sure how to do that @farfromrefug. Running:
gives me: "nativescript": "^8.1.5-next-02-15-2022-1847360438", And I still have the problem. https://www.npmjs.com/package/nativescript/v/8.2.0-alpha.0 does not exist (but I see previous Alphas are available this way). How do I access the 8.2.0 Alpha release? |
@BikeBr0 i am talking about |
Okay, back to nativescript 8.1.5 and bumping @nativescript/core to "~8.2.0-alpha.7" I get the following error when trying to build:
|
@BikeBr0 sorry you found a bug :s just fixed it in 1.1.11 |
@farfromrefug That works! I'm running @nativescript/core 8.1.1 and @nativescript-community/ui-document-picker 1.1.11 and the App builds and runs with minSdkVersion 17. However, I am experiencing 2 problems that might mean I need to update to the Alpha release:
|
@BikeBr0 good. for the first one how did you pass the filter? on android it must be mimetypes. |
'hex' is the file extension I want to restrict the picker to. This is a proprietary file format that I have specified as 'application/octet' on iOS. Do I need to register this as a custom mimetype on Android too? Do you have any documentation for this?
|
I think the original bug reported has been resolved but the plugin is not working for me so I will open a new ticket. Thanks for your help! |
I'm experiencing some strange app behavior simply by adding this library to my project. When it is added, and running on
Android (I have not tested iOS) navigation from ComponentA to ComponentB does not work. At least the UI does not update even though log statements from ComponentB do execute.
The simplest way to reproduce this problem is to create a new project using NativeScript 8.1.5, select Angular and the Tabs project:
ns create test-app
Angular
Tabs
Then build and run the project on a connected Android device:
ns build android
ns run android
Tapping on an "Item" will correctly navigate to the item detail screen:
Now add this plugin via the command:
ns plugin add @nativescript-community/ui-document-picker
Building the project at this point will result in a minSdkVersion error, so you will need to bump the minSdkVersion to 19 in app.gradle. At this point the build will succeed. However, when you run the app on your device, tapping the "Item" does not cause the item detail screen to load, even though the plugin is not actually used at runtime. Tab navigation continues to work however.
Any suggestions?
The text was updated successfully, but these errors were encountered: