Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Adjust console cannot print subscription events. #749

Open
Enjoyworld-AI opened this issue Feb 6, 2025 · 2 comments
Open

The Adjust console cannot print subscription events. #749

Enjoyworld-AI opened this issue Feb 6, 2025 · 2 comments

Comments

@Enjoyworld-AI
Copy link

The Adjust console cannot print subscription events. Other events can be printed

Image

2025-02-05 20:41:28.218325+0800 Enjoy[2732:89141] [Adjust]v: Response: {"purchase_exist":false,"purchase":{"id":"b02249bd-9fa7-47fa-9d48-ef65d15e1dc7","created":"2025-02-05T12:41:28.21133715Z","updated":"2025-02-05T12:41:28.21133715Z","transaction_id":"2000000848517297"}}
2025-02-05 20:41:28.218526+0800 Enjoy[2732:89141] [Adjust]d: Request succeeded with current URL strategy
2025-02-05 20:41:28.218612+0800 Enjoy[2732:89141] [Adjust]d: Got JSON response with message: (null)
2025-02-05 20:41:28.225476+0800 Enjoy[2732:89141] [Adjust]d: Package handler wrote 0 packages

@Enjoyworld-AI
Copy link
Author

static func subscrible(_ featureId: String, _ price: String?, currency:String?, transaction: SKPaymentTransaction?) {
    let decimalNumberFromString = NSDecimalNumber(string: price)
    guard let subscription = ADJAppStoreSubscription(
        price: decimalNumberFromString,
        currency: currency ?? "USD",
        transactionId: transaction?.transactionIdentifier ?? "") else { return }
    subscription.setTransactionDate(transaction?.transactionDate ?? Date())

// subscription.setSalesRegion(Purchase.shared.currentCountryCode)
subscription.addCallbackParameter("userId", value: Account.current.userId ?? "")
subscription.addCallbackParameter("featureId", value: featureId)
subscription.addCallbackParameter("price", value: price ?? "")
Adjust.trackAppStoreSubscription(subscription)
}

@Enjoyworld-AI
Copy link
Author

Adjust version I just started using v5.0.1 and updated to v5.1.0 but still no console

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

No branches or pull requests

1 participant