[
https://issues.apache.org/jira/browse/CB-11052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohit Gupta reopened CB-11052:
------------------------------
Hi Sarangan . Thank you for the quick response and analysis.
Actually you have only done the analysis only for creating a contact using
contacts plugin.
While retrieving a contact using navigator.contacts.find you will see that if
the contact's birthday doesn't have a year saved in Android it will return a
null value in js code. (not sure if the behavior is similar in ios)
Both Android and ios lets the user to add a birthday or any event date without
year being mandatory.
I think we should replicate this functionality in the plugin also, either by
setting a default year or by setting them as strings.
> contacts: returns birthday as null when year is not specified
> -------------------------------------------------------------
>
> Key: CB-11052
> URL: https://issues.apache.org/jira/browse/CB-11052
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Contacts
> Reporter: Mohit Gupta
> Assignee: Sarangan Rajamanickam
> Labels: Android, triaged
>
> I have created a contact with birth date without adding the year.(20/Feb)
> When I retrieve the contact from the system,the birth date it returns is
> null.
> I have tested it on Android with different dates, still the same behavior.
> NOTE: IF YOU ADD THE YEAR TO THE DATE, IT WORKS PERFECTLY.
> Versions:
> Android: 6.0.1
> Cordova: 6.1.1
> Platform: 5.1.1
> Cordova-Plugin-Contacts: 2.0.1
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]