Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
La messaggistica per argomenti FCM ti consente di inviare un messaggio a più dispositivi
che hanno attivato un determinato argomento. Componi i messaggi dell'argomento in base alle esigenze e FCM gestisce il routing e la consegna del messaggio in modo affidabile ai dispositivi giusti.
Punti chiave della messaggistica per argomenti:
Più adatti a informazioni disponibili pubblicamente, come gli avvisi meteo.
I messaggi dell'argomento sono ottimizzati per la velocità effettiva anziché per la latenza. Per una distribuzione rapida e sicura a singoli dispositivi o piccoli gruppi,
seleziona come target i messaggi in base ai token di registrazione
anziché agli argomenti.
La messaggistica basata su argomenti supporta sottoscrizioni illimitate per argomento, con i
seguenti limiti:
Un'istanza dell'app può iscriversi a un massimo di 2000
argomenti.
Le richieste batch di abbonamento per le istanze dell'app
sono limitate a 1000 istanze per richiesta.
La nuova frequenza di abbonamento è soggetta a limiti di velocità per
progetto. Il superamento del limite genera un errore 429
RESOURCE_EXHAUSTED; riprova con backoff esponenziale.
Quote e limiti
La messaggistica per argomento supporta un numero illimitato di sottoscrizioni per ogni argomento. Tuttavia,
FCM impone limiti in queste aree:
Un'istanza dell'app può essere iscritta a un massimo di 2000 argomenti.
Se utilizzi l'abbonamento batch per abbonarti alle istanze dell'app, ogni richiesta è limitata a 1000 istanze dell'app.
La frequenza dei nuovi abbonamenti è limitata in base alla velocità per progetto. Se invii
troppe richieste di iscrizione in un breve periodo di tempo, i server di FCM
risponderanno con un messaggio 429 RESOURCE_EXHAUSTED ("quota superata"). Riprova con il backoff esponenziale.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]