<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKAdTestError/Code/noPendingPostbacks",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:@E@SKAdTestErrorCode@SKAdTestErrorCodeNoPendingPostbacks"
  },
  "title" : "SKAdTestError.Code.noPendingPostbacks"
}
-->

# SKAdTestError.Code.noPendingPostbacks

The test session doesn’t have any pending postbacks to send.

```
case noPendingPostbacks
```

## Discussion

This error occurs if you call [`flushPostbacks(responses:)`](/documentation/StoreKitTest/SKAdTestSession/flushPostbacks(responses:)) before adding a postback to the test session ([`SKAdTestSession`](/documentation/StoreKitTest/SKAdTestSession)). To avoid this error, call [`SKAdTestPostback`](/documentation/StoreKitTest/SKAdTestPostback) to create a test postback, and [`setPostbacks(_:)`](/documentation/StoreKitTest/SKAdTestSession/setPostbacks(_:)) to add the test postback to the test session before calling [`flushPostbacks(responses:)`](/documentation/StoreKitTest/SKAdTestSession/flushPostbacks(responses:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)