Android firebase是否仅限于显示4kb文件JSON响应?
我使用ship engine通过发货模式下订单。我使用云函数调用发货API ship engine提供的总响应文件大小为23kb,但firebase限制为4kb。在这种情况下怎么办?。如何限制数据以从响应中获取或提取特定字段 JSON响应Android firebase是否仅限于显示4kb文件JSON响应?,android,firebase,firebase-cloud-messaging,Android,Firebase,Firebase Cloud Messaging,我使用ship engine通过发货模式下订单。我使用云函数调用发货API ship engine提供的总响应文件大小为23kb,但firebase限制为4kb。在这种情况下怎么办?。如何限制数据以从响应中获取或提取特定字段 JSON响应 { "rate_response": { "rates": [ { "rate_id": "se-21014522", "rate_type": "shipment", "carrier_
{
"rate_response": {
"rates": [
{
"rate_id": "se-21014522",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 0.47
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 4,
"package_type": "letter",
"delivery_days": 4,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-07T00:00:00Z",
"carrier_delivery_days": "3",
"ship_date": "2018-09-03T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS First Class Mail",
"service_code": "usps_first_class_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-21014523",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 1.00
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 4,
"package_type": "large_envelope_or_flat",
"delivery_days": 4,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-07T00:00:00Z",
"carrier_delivery_days": "3",
"ship_date": "2018-09-03T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS First Class Mail",
"service_code": "usps_first_class_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-21014524",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 2.66
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 4,
"package_type": "package",
"delivery_days": 4,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-07T00:00:00Z",
"carrier_delivery_days": "3",
"ship_date": "2018-09-03T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS First Class Mail",
"service_code": "usps_first_class_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-21014525",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 6.89
},
"insurance_amount": {
"currency": "usd",
"amount": 0.00
},
"confirmation_amount": {
"currency": "usd",
"amount": 0.00
},
"other_amount": {
"currency": "usd",
"amount": 0.00
},
"zone": 4,
"package_type": "package",
"delivery_days": 3,
"guaranteed_service": false,
"estimated_delivery_date": "2018-09-06T00:00:00Z",
"carrier_delivery_days": "2",
"ship_date": "2018-09-03T00:00:00Z",
"negotiated_rate": false,
"service_type": "USPS Priority Mail",
"service_code": "usps_priority_mail",
"trackable": true,
"carrier_code": "stamps_com",
"carrier_nickname": "Free",
"carrier_friendly_name": "Stamps.com",
"validation_status": "valid",
"warning_messages": [],
"error_messages": []
},
{
"rate_id": "se-21014526",
"rate_type": "shipment",
"carrier_id": "se-341525",
"shipping_amount": {
"currency": "usd",
"amount": 12.45
},
"insurance_amount": {
上半部分JSON仅显示在firebase控制台中
提前感谢您必须将消息有效负载限制为4K,然后让客户端应用程序获取剩余数据(如有必要)。