一旦用户打开应用,可以调用restoreCompletedTransactions
方法吗?
还是应该在后台线程中排队方法调用?是不是考虑了阻塞线程?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
registerForPushNotifications()
handleRemoteNotifications(launchOptions: launchOptions)
LoveSubscriptions.store.requestProducts(nil)
LoveSubscriptions.store.restorePurchases()
return true
}