firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.52k stars 1.44k forks source link

10.17 massively overreports subscription renewals #12050

Open john-legallynoticed opened 9 months ago

john-legallynoticed commented 9 months ago

Description

10.17 is reporting 100s of renewals transactions that are not occurring on multiple users

Reproducing the issue

Screenshot 2023-11-04 at 11 40 07 AM

Firebase SDK Version

10.17

Xcode Version

15.0

Installation Method

CocoaPods

Firebase Product(s)

Analytics

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json Replace this line with the contents of your Package.resolved. ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 9 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

john-legallynoticed commented 9 months ago

Is there a way to disable auto-reporting of these events and mange it manually until this issue can be resolved? We are using StoreKit2 by the way, and we just implemented Firebase on our iOS app this week so 10.17 is the first version we've used. The affected users so far are all internal testers that have been testing the app for months and have 100s of sandbox transactions. Does the library query the entire transaction history for newly reported users?

To that end, sandbox transactions should not automatically be reported as app revenue. 100% of these are sandbox renewals.

pcfba commented 8 months ago

Hi John. Thanks for the report.

I found an existing feature request to disable automatically logging purchases: https://github.com/firebase/firebase-ios-sdk/issues/2435 Feature request: disable auto logging of in_app_purchase.

If an existing app with in-app purchases in the receipt doesn't have the analytics library installed, and then later has the analytics library installed, the library will automatically log those previous transactions.

Steps to log new purchases made while the app has the analytics library installed are at https://firebase.google.com/docs/analytics/measure-in-app-purchases.

Steps to request Analytics data to be deleted are at https://support.google.com/analytics/answer/9940393 [GA4] Data-deletion requests.