Skip to content

Clarify uuid requirement for app account token#15

Merged
dcrawbuck merged 2 commits intomainfrom
cursor/SW-3485-clarify-uuid-requirement-for-app-account-token-09db
Oct 21, 2025
Merged

Clarify uuid requirement for app account token#15
dcrawbuck merged 2 commits intomainfrom
cursor/SW-3485-clarify-uuid-requirement-for-app-account-token-09db

Conversation

@dcrawbuck
Copy link
Collaborator

@dcrawbuck dcrawbuck commented Oct 15, 2025

Clarify that the userId must be a valid UUID on iOS for appAccountToken to ensure consistency with Apple's requirements and prevent identifier mismatches in purchase notifications.

The appAccountToken in App Store Server Notifications will differ from the userId passed to identify if the userId is not a valid UUID, as StoreKit silently rejects non-UUIDs and the SDK falls back to the anonymous alias UUID. This update explicitly warns users about this behavior and provides guidance.


Linear Issue: SW-3485

Open in Cursor Open in Web


Note

Clarifies that userId must be a UUID on iOS for appAccountToken, documents fallback to alias UUID if not, and adds guidance and example.

  • iOS Docs:
    • Warning added in content/docs/ios/sdk-reference/identify.mdx: userId must be a UUID for appAccountToken; non-UUIDs are rejected and SDK falls back to the alias UUID; recommend v4 UUID.
  • Identity Management (content/shared/user-management/identity-management.mdx):
    • Table update: Adds non-UUID userId scenario (StoreKit rejection → alias UUID fallback).
    • Warning block: Explains UUID requirement and potential identifier mismatch in App Store Server Notifications.
    • Swift example: Shows generating and using a UUID for identify.

Written by Cursor Bugbot for commit d4d89bd. This will update automatically on new commits. Configure here.

@cursor
Copy link

cursor bot commented Oct 15, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@linear
Copy link

linear bot commented Oct 15, 2025

SW-3485 [docs] clarify that user id needs to be valid UUID for appAccountToken

page(s): https://superwall.com/docs/ios/quickstart/user-management

Changes Needed

repo=superwall/docs

@dcrawbuck dcrawbuck marked this pull request as ready for review October 15, 2025 21:31
@dcrawbuck dcrawbuck added the preview Preview deploy for this PR (Superwall team only) label Oct 15, 2025
Co-authored-by: duncan <duncan@superwall.com>
@dcrawbuck dcrawbuck force-pushed the cursor/SW-3485-clarify-uuid-requirement-for-app-account-token-09db branch from d4d89bd to 1b83fd0 Compare October 20, 2025 21:40
@dcrawbuck dcrawbuck removed the preview Preview deploy for this PR (Superwall team only) label Oct 20, 2025
@dcrawbuck dcrawbuck merged commit 6953a26 into main Oct 21, 2025
4 checks passed
@dcrawbuck dcrawbuck deleted the cursor/SW-3485-clarify-uuid-requirement-for-app-account-token-09db branch October 21, 2025 00:47
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.

2 participants