Commit 08b84ba
committed
Purchase tracking fix variable type to be string
* SKProduct.price is an NSDecimalNumber and we had been sending this as is, but the backend expects a String
* This can be reproduced manually by a creating purchase array and calling `OneSignalUserManagerImpl sendPurchases`
* It returns a 400 with: "Field deltas.purchases.amount was expecting value of type 'string', received value of type 'number' instead"1 parent 5d39587 commit 08b84ba
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | | - | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| |||
0 commit comments