ionic-team / ionic-team/capacitor

[Feature]: disable automatic Date serialization on Android

Open
#7,252 0 comments 1 reaction 1 assignee Claimed by @theproducer View on GitHub
triage
Dominant language
TypeScript
Stars
16.7k
Forks
1.3k
Avg merge
3d 15h
Merged PRs (30d)
10

Description

### Description

Add an option to disable the automatic serialization of date objects on Android.

### Platforms

- [ ] iOS
- [X] Android
- [ ] Web

### Request or proposed solution

The [Capacitor Firebase Firestore](https://capawesome.io/plugins/firebase/cloud-firestore/) plugin must be able to distinguish between strings and date objects. This is already possible on iOS by setting [`shouldStringifyDatesInCalls`](https://capacitorjs.com/docs/core-apis/data-types#dates) to `false`. I need the same option on Android.

### Alternatives

_No response_

### Additional Information

Related to https://github.com/ionic-team/capacitor/pull/4177 and https://github.com/capawesome-team/capacitor-firebase/issues/474

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.