Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit f95aeb9

Browse files
Nested GeoPoint gets saved as object in Firestore on iOS #947
1 parent e763c41 commit f95aeb9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

demo-ng/app/tabs/firestore/firestore.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ export class FirestoreComponent {
142142
.update({
143143
name: "Woofieupdate",
144144
last: "updatedwoofie!",
145+
nested: {
146+
nestedFoo: "bar",
147+
nestedUpdateTs: firestore.FieldValue.serverTimestamp(),
148+
nestedLastKnownLocation: firebase.firestore().GeoPoint(4.34, 5.67),
149+
nestedLastKnownLocation2: firestore.GeoPoint(4.34, 5.67)
150+
},
145151
city: sfDocRef,
146152
updateTs: firestore.FieldValue.serverTimestamp(),
147153
updateTsAlt: firebase.firestore().FieldValue().serverTimestamp(),

demo-ng/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nativescript-angular": "^6.1.0",
2626
"nativescript-camera": "^4.0.2",
2727
"nativescript-imagepicker": "~6.0.4",
28-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.2.tgz",
28+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.4.tgz",
2929
"nativescript-theme-core": "~1.0.4",
3030
"reflect-metadata": "~0.1.10",
3131
"rxjs": "~6.0.0 || >=6.1.0",

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "7.1.3",
3+
"version": "7.1.4",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)