קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
FCM שליחת הודעות לפי נושא מאפשרת לשלוח הודעה לכמה מכשירים
שהמשתמשים שלהם הצטרפו לנושא מסוים. אתם כותבים הודעות בנושאים לפי הצורך,
ו-FCM מטפל בניתוב ההודעה ובשליחתה בצורה מהימנה למכשירים הנכונים.
נקודות חשובות לגבי שליחת הודעות בנושאים:
הכי מתאים למידע שזמין לציבור, כמו התראות על מזג האוויר.
הודעות בנושאים עוברות אופטימיזציה לתפוקה ולא לזמן אחזור. כדי לשלוח הודעות במהירות ובאופן מאובטח למכשירים בודדים או לקבוצות קטנות, מטרגטים הודעות לטוקנים של רישום במקום לנושאים.
הודעות בנושא תומכות במספר בלתי מוגבל של מינויים לכל נושא, עם המגבלות הבאות:
כל מופע של אפליקציה יכול להירשם לעד 2,000 נושאים.
בקשות להרשמה בכמות גדולה של מופעים של אפליקציות מוגבלות ל-1,000 מופעים לכל בקשה.
תדירות המינוי החדשה מוגבלת לפי קצב לכל פרויקט. חריגה מהמגבלה תגרום לשגיאה 429
RESOURCE_EXHAUSTED. צריך לנסות שוב עם השהיה מעריכית לפני ניסיון חוזר (exponential backoff).
מכסות ומגבלות
הודעות בנושא תומכות במספר בלתי מוגבל של מינויים לכל נושא. עם זאת, FCM אוכף מגבלות בתחומים הבאים:
כל מופע של אפליקציה יכול להירשם לעד 2,000 נושאים.
אם אתם משתמשים בהרשמה בכמות גדולה כדי להירשם למופעי אפליקציות, כל בקשה מוגבלת ל-1,000 מופעי אפליקציות.
התדירות של מינויים חדשים מוגבלת לכל פרויקט. אם שולחים יותר מדי בקשות להרשמה בפרק זמן קצר, שרתי FCM ישיבו עם תגובה 429 RESOURCE_EXHAUSTED ("חריגה מהמכסה"). ניסיון חוזר עם השהיה מעריכית לפני ניסיון חוזר (exponential backoff).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-09-06 (שעון UTC)."],[],[],null,["FCM topic messaging lets you to send a message to multiple devices\nthat have opted in to a particular topic. You compose topic messages as needed,\nand FCM handles routing and delivering the message reliably to the\nright devices.\n\nKey points about topic messaging:\n\n- Best suited for publicly available information like weather alerts.\n- Topic messages are optimized for throughput rather than latency. For fast, secure delivery to single devices or small groups, [target messages](/docs/cloud-messaging/send-messages/send/v1-api#send-messages-to-specific-devices) to registration tokens instead of topics.\n- Topic messaging supports unlimited subscriptions per topic, with the following limits:\n - An app instance can subscribe to a maximum of 2000 topics.\n - Batch subscription requests for subscribing app instances are limited to 1000 instances per request.\n - New subscription frequency is rate-limited per project. Exceeding the limit results in a `429\n RESOURCE_EXHAUSTED` error; retry with exponential backoff.\n\nQuotas and limits\n\nTopic messaging supports unlimited subscriptions for each topic. However,\nFCM enforces limits in these areas:\n\n- One app instance can be subscribed to no more than 2000 topics.\n- If you are using [batch subscription](https://developers.google.com/instance-id/reference/server#manage_relationship_maps_for_multiple_app_instances) to subscribe app instances, each request is limited to 1000 app instances.\n- The frequency of new subscriptions is rate-limited per project. If you send too many subscription requests in a short period of time, FCM servers will respond with a `429 RESOURCE_EXHAUSTED` (\"quota exceeded\") response. Retry with exponential backoff.\n\nNext Steps\n\n- Learn how to [Manage Topic Subscriptions](/docs/cloud-messaging/doc-revamp/targeting-user-groups/manage-topic-subscriptions) using the Admin SDK or from your client app.\n- Learn how to [Send Messages to Topics](/docs/cloud-messaging/doc-revamp/targeting-user-groups/send-topic-messages) using the Admin SDK or the FCM v1 HTTP API."]]