Logo de Cometchat Ios Push

Cometchat Ios Push

Organização
cometchat
cometchat-ios-push

Add push notifications to an iOS CometChat app — APNs registration, token handoff, tap-to-open, badge counts and VoIP call pushes. Triggers: 'push notifications cometchat ios', 'apns cometchat', 'open chat from notification ios', 'voip push call ios'.

Visão geral

Publicado porcometchat
Repositóriocometchat-skills
Nome da habilidadecometchat-ios-push
Estrelas
109
Forks
2
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por cometchat no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Cometchat Ios Push no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-ios-push
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cometchat/cometchat-skills.git /tmp/cometchat-skills
mkdir -p .claude/skills
cp -r /tmp/cometchat-skills/skills/cometchat-ios-push .claude/skills/cometchat-ios-push
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Cometchat Ios Push em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Cometchat Ios Push automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Cometchat Ios Push não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Companion skills (read first)

  • cometchat-ios-core owns setup and login. This skill ADDS delivery. It is docs-first and thin: push depends on your Apple account, certificates and Dashboard configuration, so fetch the notifications docs via cometchat-ios-core/references/docs-map.md rather than trusting a baked recipe.

Use this skill when

"add push notifications", "open the right chat when a notification is tapped", "ring on an incoming call while backgrounded".

What you must have before any code

Push is not a code-only feature. All of these are prerequisites and none are things a skill can do for the user: an Apple Developer account with the Push Notifications capability, an APNs key or certificate uploaded to the CometChat Dashboard, and the Notifications product enabled for the app. If any are missing, say so plainly and stop — do not emit code that cannot work.

The shape of the integration — use CometChatPushNotifications, do NOT hand-roll

The current, canonical iOS path is the CometChatPushNotifications SDK (module CometChatPushNotificationsSwift), the same one cometchat-ios-v5-sdk documents. Do not hand-roll UIKitSettings.set(deviceToken:) / set(voipToken:), PKPushRegistryDelegate or CXProviderDelegate — those setters exist but are the legacy path the sample app and current docs no longer use.

  1. Request authorisation and register for remote notifications (on a real device — the simulator does not receive APNs).
  2. After CometChat.init, call CometChatPushNotifications.shared.initialize(config:) and set its .delegate. In didRegisterForRemoteNotificationsWithDeviceToken, forward the APNs token with CometChatPushNotifications.shared.registerDeviceToken(_:). Ordering is not your problem — the token can arrive before login; the SDK caches it and binds it to the user automatically once you initialize and the user logs in. (There is no need to gate didRegister… on login, and no set(deviceToken:) call.)
  3. Handle the tap: read the payload, resolve the conversation, and push your chat screen — the same screen core builds. A notification that opens the app to the wrong place is the push equivalent of a dead-end affordance.
  4. Log out unregisters. Leaving a stale token delivers a user's messages to a device someone else may now be using — treat it as a correctness and privacy requirement, not a nicety.

VoIP / calls

Ringing while backgrounded is also CometChatPushNotifications, not a hand-rolled channel: it owns PushKit + CallKit for you (registerForVoIPPushes(), presentCallScreen(for:sessionId:)). Never write your own PKPushRegistryDelegate / CXProviderDelegate or call UIKitSettings.set(voipToken:) — the SDK owns both and a hand-rolled one fights it for the same callbacks. Full VoIP wiring lives in cometchat-ios-v5-sdk (§ "VoIP call notifications"); it needs an APNs VoIP provider in the Dashboard, the Voice-over-IP Background Mode, and a physical device.

Gotchas

  • Simulator cannot verify this. Delivery must be checked on a physical device; expect the automated gate to report push as blocked-external.
  • Badge counts drift unless you update and clear them deliberately.
  • Sandbox vs production APNs are different environments — a token from one will not deliver on the other.

Verify it works

On a real device: background the app, send a message from another user, see the notification, tap it and land in the right conversation. Then log out and confirm notifications stop.

Perguntas frequentes

O que a habilidade de IA Cometchat Ios Push faz?

Add push notifications to an iOS CometChat app — APNs registration, token handoff, tap-to-open, badge counts and VoIP call pushes. Triggers: 'push notifications cometchat ios', 'apns cometchat', 'open chat from notification ios', 'voip push call ios'.

Por que usar Cometchat Ios Push no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Cometchat Ios Push é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Cometchat Ios Push no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-ios-push. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Cometchat Ios Push?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Cometchat Ios Push?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Cometchat Ios Push com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Cometchat Ios Push é gratuita?

Sim. A habilidade é publicada no GitHub por cometchat sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇