SkAction interfering with In App Purchase?

Swift 3.0. iOS 10.0 Xcode 8. (The newest stuff)


Ok for the life of me I cant figure why this is happening. I am thoroughly flummoxed.

I have an In App Purchase set up fine via notifcation.

Everything works peachy as long as the SKAction for the button sound is Commented OUT.



If I comment out the // run(SKAction.playSoundFileNamed("correctanswer.caf", waitForCompletion: false))

the IAP WORKS

If I uncomment it it does NOT.

WHAT?


Any possible ideas why an SKAction can affection a Notification to set up an IAP?


if (nodeName == "help") {

// run(SKAction.playSoundFileNamed("correctanswer.caf", waitForCompletion: false))

if (fullVersion == 0) {

IAPPressed = "Y"

PricePressed = "N"

RestorePressed = "N"

NotificationCenter.default.post(name: NSNotification.Name(rawValue: "IAPCall"), object: nil)

}


}

it is definitely the sound. If the sound plays while the pop up for the IAP displays it CRASHES.


Even if the wait for Completion flag is set to true....


So strange. Well at least I figured it out after 6 hours of debugging the IAP itself....


I probably am going to need Apple on this one. I am very curious now just why.


If the sound is too long and carries over to when the IAP pop window starts the process, it crashes.


No SOUND or a very short blip and it is fine.

SkAction interfering with In App Purchase?
 
 
Q