3 Replies
      Latest reply on Aug 12, 2019 1:02 AM by bluecrowbar
      saham Level 1 Level 1 (0 points)

        Hi
        Hi everyone Has anyone used In-App Purchase in Xcode 11 beta 5? My code works in Xcode 10.3 but the same code does not work in Xcode 11 Beta 5.  MacOS 10.15 Beta (19A526h).

        publicfunc requestProducts(_ completionHandler: @escaping ProductsRequestCompletionHandler) {
                productsRequest?.cancel()
                productsRequestCompletionHandler = completionHandler
            
                let productsRequest = SKProductsRequest(productIdentifiers: productIdentifiers)
                productsRequest.delegate = self
            
                productsRequest.start()
            }
        
        
            public func productsRequest(_ request: SKProductsRequest, didReceive response: SKProductsResponse) {
        
               let products = response.products
                productsRequestCompletionHandler?(true, products)
                productsRequest = nil
                productsRequestCompletionHandler = nil
        
           
            }


        Thanks