[Solved] App crashes after IAP starts

Hello,

For the first time, when I clicked button, which starts Unity IAP process, immediately after popup is opened, the app crashed on iOS. When I trace it on XCode, I see it::Ekran Resmi 2016-12-22 16.09.07.png

Then, for the next attempts to purchase, the app will crash for 100% if it is crashed once. The error is still same as above.

One more thing, I don’t know it makes sense, I recognize that if I purchase successfully, I see “updatedTransactions” code line on XCode, but if it fails, it is not seen.

If you need further information, let me know.

1 Like

I am facing the same issue… please help me…

@moralabs , @srinivastimuz ,

Can you provide some more details about this issue?

What version of Unity Editor are you using?
What version of Unity IAP are you using?
Do you have any errors in the Editor or only the iOS builds?
Would you be able to provide more details about the product you are purchasing?
How often does this happen?

Also, have you tried running with Zombie Objects? In Xcode in the:

Unity-iPhone->Edit Scheme->Run->Diagnostics->Memory Management->Zombie Objects check box

This will print to the output console the name of the object that is causing the EXC_BAD_ACCESS if it is accessing a previously deallocated object.

@moralabs @srinivastimuz
We have had other users report a similar issue. The cause turned out to be the plugin OneSignal. If you are using that plugin, that developer has released a fix for this issue.

http://answers.unity3d.com/answers/1306535/view.html

If you are not using that plugin, can you try the suggestion that ted-unity made and see what the result is.