defold / extension-iap

In-app purchase extension for Defold
MIT License
19 stars 12 forks source link

iOS crash, empty IAPProduct #18

Closed AGulev closed 4 years ago

AGulev commented 4 years ago

Sometimes, when developer create new purchase, AppStore returns IAPProduct with empty fields (except productIdentifier) and app crash on the following line: https://github.com/defold/extension-iap/blob/8d9ea79d7ddef8bc94035f510907008db938c233/extension-iap/src/iap_ios.mm#L122

I think extension should check if this field empty and provide debug message.

I found that after a few renaming of purchases (yes, just rename purchase in App Store Connect, and then rename it back), I start receiving valid purchase info.

More info here: https://github.com/defold/editor2-issues/issues/2908