Comments (2)
I can't reproduce this in Xcode 14.2.
StoreHelper starts listening for transactions as soon as you call storeHelper.start()
:
@available(iOS 15.0, macOS 12.0, *)
@main
struct StoreHelperDemoApp: App {
@StateObject var storeHelper = StoreHelper()
var body: some Scene {
WindowGroup {
MainView()
.environmentObject(storeHelper)
.task { storeHelper.start() } // Start listening for transactions
}
}
}
@available(iOS 15.0, macOS 12.0, *)
public class StoreHelper: ObservableObject {
:
:
/// Call this method as soon as possible after your app starts and StoreHelper has been initialized.
/// Failure to call` start()` may result in transactions being missed.
/// This method starts listening for App Store transactions and requests localized product info from the App Store.
@MainActor public func start() {
guard !hasStarted else { return }
// Listen for App Store transactions
transactionListener = handleTransactions()
// Get localized product info from the App Store
refreshProductsFromAppStore()
}
}
from storehelper.
That's what I thought.
It might just be a false positive produced by Xcode
from storehelper.
Related Issues (20)
- Missing repository reference HOT 3
- Missing products in production ready app HOT 3
- Certificate issue on device HOT 4
- Subscriptions renewed when the MacOS app was closed are not picked up by Storekit2 HOT 10
- How to implement custom transaction handler HOT 3
- Compile Issue HOT 1
- Cancellation not detected HOT 5
- Question about using StoreHelper in Safari Extension project HOT 3
- Auto-renew subscription eligibility HOT 1
- "Writerly" hard-coded into StoreHelper HOT 1
- Can I use this without having the local Product.plist configuration file? HOT 1
- Log clashes for different transactions due to missing transactionID in TransactionLog HOT 1
- wrong version: not same as git tag HOT 1
- How to disable logs? HOT 1
- Can't compile on visionOS HOT 1
- Please provide a document for UIKit to use HOT 1
- Use custom colors
- Any support of Privacy Manifest? HOT 5
- Update package version 2.62.0 but used 2.6.3 HOT 5
- Prepare for Swift 6.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storehelper.