# In-App Purchase Fail Node not Executing when theres no connection

**URL:** <https://forums.unrealengine.com/t/in-app-purchase-fail-node-not-executing-when-theres-no-connection/332814>\
**Category:** Blueprint\
**Tags:** in-app-purchase, unreal-engine, iOS, bug-report, question, Blueprint\
**Created:** [September 20, 2015, 7:51am UTC](https://forums.unrealengine.com/t/in-app-purchase-fail-node-not-executing-when-theres-no-connection/332814 "2015-09-20T07:51:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_61ce145f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61ce145f](https://forums.unrealengine.com/u/anonymous_user_61ce145f)\
**Post date:** [September 20, 2015, 7:51am UTC](https://forums.unrealengine.com/t/in-app-purchase-fail-node-not-executing-when-theres-no-connection/332814/1 "2015-09-20T07:51:09Z")

</div>

In-App Purchase fail node will not execute when theres no connection on a device (tested on iOS). Is this intended?

This is reproducable by doing the following:

1. Turn on network connection on your iOS device
2. Log in with sandbox and buy something (should succeed)
3. Open control center and turn off network connection
4. Buy something again, the completion status will be stuck at success eventhough it has no connection
5. Restarting the app will make it work again

_Side note:_ Is there a way for me to check if a device is connected to the network? “is logged in” won’t work when the player closes the network connection while gamecenter has already logged in.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 22, 2015, 9:31pm UTC](https://forums.unrealengine.com/t/in-app-purchase-fail-node-not-executing-when-theres-no-connection/332814/2 "2015-09-22T21:31:52Z")

</div>

Hey ,

I am checking into this execution to see if I can reproduce it and whether or not a bug resides.

- Could you please provide me any errors or that you may have received on your device?
- Which device are you on and what version of the operating system is the device updated to?
- Please provide a screenshot of your blueprint set up for us to fully reproduce.

[How to get off of an iOS device][1]

**Windows:**

- Open iPhonePackager (Engine/DotNET/IOS)
- Select a uproject file (Optional)
- Select the Advance Tools tab
- Select Other Deployment Tools…
- Select Backup Documents…
- Select the IPA for the game you wish to get a log for
- The documents directory data will then be copied to Engine/DotNET/IOS/IOS\_Backups or GameDir/IOS\_Backups if a uproject was selected
- The log can then be found at IOS\_Backups/Game/Saved/

**Mac:**

- Open Xcode (Install Xcode if you have not already)
- Open Window|Devices
- Select the device you want to get the log off of
- Select the app you want to get the log from
- Select the gear icon under the app list
- Select Download Container
- Select a location for the container file
- Navigate to the file via Finder
- Right click and select Show Package Contents
- Navigate to the location of the log (AppData/Documents/Game/Saved//)

Thank you!

[A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Mobile_Development_Troubleshooting_Guide)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61ce145f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61ce145f](https://forums.unrealengine.com/u/anonymous_user_61ce145f)\
**Post date:** [September 28, 2015, 4:20pm UTC](https://forums.unrealengine.com/t/in-app-purchase-fail-node-not-executing-when-theres-no-connection/332814/3 "2015-09-28T16:20:49Z")

</div>

Unfortunately there was no error for it. This is because the completion status prints success but does not run the success execute pin and there wasn’t any crash.

**My Device:** iPhone 6 & iPad 2, OS 8.4.1

**Blueprint Setup:**

 ![60552-iapnodebug.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/6/2b691b89236c63319c7584293e4b901b55081ac2.png)

A. If everything is setup correctly on iTunes Connect and using a sandbox account, pressing 1 will show “Purchase Success” along with Event Tick printing out various completion status

B. However if you repeat the steps as follows:

B1. Turn on network connection on your iOS device

B2. Log in with sandbox and buy something (Will print “Purchase Success” & various completion status from Event Tick) - Correct Behavior

B3. Turn off network connection on your device

B4. Press 1 again immediately after connection is off and it will result in completion status printing “success” eventhough the success pin is not executed. This will result in getting stuck as none of the success or fail pin will execute.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 30, 2015, 6:14pm UTC](https://forums.unrealengine.com/t/in-app-purchase-fail-node-not-executing-when-theres-no-connection/332814/4 "2015-09-30T18:14:08Z")

</div>

Hey ,

I have submitted a report for this issue, which I’ve informed the developers of. If you’d like to check on UE-21641 in a few weeks, feel free to ask here.

Thanks!
