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)
}
}