Skip to content

Add create_push_payload_basic_usage docs snippet - #131

Merged
techwritermat merged 1 commit into
masterfrom
docs-snippet-create-push-payload
Oct 9, 2026
Merged

techwritermat merged 1 commit into
masterfrom
docs-snippet-create-push-payload

Conversation

@techwritermat

Copy link
Copy Markdown
Contributor

Summary

Adds the create_push_payload_basic_usage snippet that the Unity docs reference (Misc, Create push payload). Without it the docs render 'Code snippet not found'.

The snippet uses MobilePushHelper (APNS2 + FCM, Apns2Data, custom data), the successor of the old CreatePushPayloadHelper.

Test plan

  • Compiled and run against the shipped PubnubApiUnity.dll in a net9.0 console project, 0 errors, GetPayload() returns without exception
  • Not built inside the Unity editor

🤖 Generated with Claude Code

Add CreatePushPayloadBasicUsage to MiscSample.cs using MobilePushHelper for the Create push payload docs section.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@jakub-grzesiowski jakub-grzesiowski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xavrax Xavrax left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@techwritermat
techwritermat merged commit 146efdf into master Oct 9, 2026
5 checks passed
@techwritermat
techwritermat deleted the docs-snippet-create-push-payload branch October 9, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants