Skip to content
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

BETA: Android: Nested present config attributes not working #40

Open
dimitrijuchtmans opened this issue Apr 20, 2021 · 0 comments
Open

Comments

@dimitrijuchtmans
Copy link

dimitrijuchtmans commented Apr 20, 2021

Describe the bug
I pass a dd-MM-yyy format to my DatePickerPlugin present function as part of the android configuration. my capacitor config has no default set, so by default plugin takes iso standard.
The more specific format is not overriding the default one.
This causes the app to crash with a parsing error on the dates.

To Reproduce
Steps to reproduce the behavior:

  1. call DatePickerPlugin.present with a custom format, described in android: { format: 'dd-MM-yyyy'} for example
  2. Open debug mode in android studio or whatever :).
  3. Plugin calls the method PluginCall.getString(key, default) internally, but this capacitor method does not support nested keys.

Expected behavior
DatepickerPlugin.java should run custom code when dealing with nested json paths.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
A temporary workaround is proably to have my dd-MM-yyy format described in the deprecated top level format config attribute ( or capacitor.config.json)

@dimitrijuchtmans dimitrijuchtmans changed the title Android: Nested present config attributes not working BETA: Android: Nested present config attributes not working Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant