Hey,
I found IAP didn’t work on cellular as my app had it off by default.
I want my unity mobile app to be able have “use mobile data” on by default
Also if the user turns it off, I want to be able to provide a reason why IAP isn’t working
I’ve searched around for this but and found some similar answers in swift and some-out of-date answers. Unfortunately its hard to search for because “Mobile data” throws up a lot of noise in searches.
You might want to take a look at the Sample IAP Project. During IAP initialization, we have a retry callback that fires if we are not able to connect to the Internet. You could alert the user if you receive one or more of these callbacks. https://discussions.unity.com/t/700293/6
You would need to select this in Settings on the device, there is no API built into IAP for this. As you may have noticed with some apps, they take you back to the Settings popup. Unfortunately I’m not familiar with an API, you might ask in the iOS forum https://forum.unity.com/forums/ios-and-tvos.27/
Thanks Jeff,
I looked at “PureRockets_IAP”
In MyIAPManager.cs there is a function called “OnPurchaseFailed()”. They don’t seem to do anything except print a debug string. Am I missing something?