亲爱的,大满贯 我正在使用firebase通知实用程序及其数据有效负载。 问题在于数据有效载荷大小。 在FireBase文档中“消息总大小限制为4kb。”
{
"to" : "/topics/global",
"notification": {
"body": "Cool Tractor",
"title": "Flat 80% discount",
"icon": "appicon"
},
"data" : {
"type":"2",
"title":"New Machinery added",
"message":"Dal Eng add new tractor to crops list, please check",
"equip":{
"equip_name":"Taf Tractor N900",
"equip_type":"T",
"equip_spec":"Very strog tractor..................................like batman",
"equip_name_ar":"تركتر البعاعيت للشغل العتيد",
"equip_type_ar":"تركتر",
"equip_spec_ar":"التركر دا جااامد جدا جدا جدا وبشتغل شغل عنيف",
"equip_img_url":"droid-life.com/wp-content/uploads/2014/10/lollipop-wallpapers10.jpg",
"equip_pdf_url":"dalgroup.com",
"equip_vid_url":"youtube.com",
"equip_text":"<p><strong>Land preperation0101</strong></p><div>Lorem ipsum dolor sit amet, te sumo latine nusquam sed, ex his vidisse vocibus, ut mea habemus perfecto efficiantur. His ludus volutpat ad, pri tempor adipisci ex. Vim ea ferri decore similique, an decore minimum definiebas est, habeo mollis usu ne. Suas dicit ad sed, aliquam appareat intellegebat mea ne. An lucilius incorrupte cum, altera splendide usu ei.</div><div> </div><div>Usu ne facer veritus definitiones, debet vulputate per id. Sit omnes decore facilisi ad. No animal officiis reformidans vel, nonumy facilisi inimicus te mea, nam solum posse eirmod te. Ius nisl affert placerat ad.</div><div> </div><div>Ne paulo intellegam definitiones sea, an enim assum vituperata eum. Posse saepe usu an, eu reprimique scripserit adversarium est, ne honestatis concludaturque vis. Dicant constituam pri ea, stet admodum no qui. Modo facete id vis.</div><div> </div><div>Ex oratio voluptatum his, ei vel causae disputando. At quo aeque audire vivendo. Sumo minim his ut. Qui paulo probatus te, at iudico molestie pro. Errem principes id per, eos cu verterem iracundia, cum graece disputando an.</div><div> </div><div>Ex nam tempor deterruisset, rebum scripserit qui id, soleat regione eum cu. Voluptua adipiscing ex nec. Eu cum nobis eripuit invidunt, ne tota molestiae nec. Magna possim ancillae ius ea, eam et dicat inani errem, est eros nominati ut.</div>",
"equip_text_ar":"<p><strong>Cool Tractor</strong></p><p><em>ractors</em> and Farm Equipment Limited 77, Nungambakkam High Road, ... and Farm Equipment Limited Managed by <em>TAFE</em> Corporate Communications. <em>tafe</em>-tribe.</p>"
> }
> }
>}
以上文字是我的要求
它的大小约为2K
所以为什么firebase fcm说消息太大