Skip to content

Analytics: Add apple store kit 2 support#1460

Open
AustinBenoit wants to merge 1 commit into
mainfrom
storekit2
Open

Analytics: Add apple store kit 2 support#1460
AustinBenoit wants to merge 1 commit into
mainfrom
storekit2

Conversation

@AustinBenoit
Copy link
Copy Markdown
Contributor

Description

Provide details of the change, and generalize the change in the PR title above.

Analytics: Add apple store kit 2 support for logging apple transactions.


Testing

Describe how you've tested these changes.

Test locally with simulator and simulated Apple transaction:

image

Added in additional integration tests to validate the other platforms are error free.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

@AustinBenoit AustinBenoit added the tests-requested: full Trigger a FULL set of integration tests (uses expanded test matrix). label May 15, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Apple's StoreKit 2 transactions in Firebase Analytics by adding the LogAppleTransactionAsync method. The update includes necessary SWIG configurations for async support, a new UI test button and automated test case in the sample app, and detailed documentation for iOS testing. Review feedback primarily identified several typos and capitalization issues in the C# documentation, the test app readme, and the release notes.

/// </summary>
/// <remarks>
/// This method is intended for Unity developers on iOS who process transactions
/// via In-app purchases and need whish to log those purchases through Google Analytics.
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.

medium

There is a typo in the documentation: 'need whish' should be corrected to 'wish'.

  /// via In-app purchases and wish to log those purchases through Google Analytics. 

/// This method is intended for Unity developers on iOS who process transactions
/// via In-app purchases and need whish to log those purchases through Google Analytics.
/// The provided ID must map 1:1 with the native Apple `Transaction.id`.
/// If a matching transaction is not found in the apple devices purchase history then
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.

medium

Proper nouns like 'Apple' should be capitalized, and 'device's' should be possessive to correctly describe the purchase history.

  /// If a matching transaction is not found in the Apple device's purchase history then 


## iOS Testing LogAppleTransaction

To test the log apple transaction function, you should use the exported Xcode project and Xcode's simulated transactions.
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.

medium

The method name 'LogAppleTransaction' and the proper noun 'Apple' should be capitalized for consistency and clarity.

Suggested change
To test the log apple transaction function, you should use the exported Xcode project and Xcode's simulated transactions.
To test the LogAppleTransaction function, you should use the exported Xcode project and Xcode's simulated transactions.

Comment thread docs/readme.md
-------------
### Upcoming
- Changes
- Analytics: Add support for Apple's Store kit 2 transactions. Add new `LogAppleTransactionAsync` method
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.

medium

The correct name for the framework is 'StoreKit 2'. Also, there is an extra space before the method name that should be removed.

Suggested change
- Analytics: Add support for Apple's Store kit 2 transactions. Add new `LogAppleTransactionAsync` method
- Analytics: Add support for Apple's StoreKit 2 transactions. Add new `LogAppleTransactionAsync` method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-requested: full Trigger a FULL set of integration tests (uses expanded test matrix).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant