the dreaded cannot connect to iTunes - inapp purchase problem
Posted: Thu Oct 05, 2017 9:02 pm
Hi all
I am trying to get in app purchases working and going in loops. Apart from the IOS 11 issue when testing, now resolved, I cannot get the purchase to go through.
It pops up the prompt for user name and password but will not go passed it reporting 'cannot connect to iTunes'.
I have noticed that if i deliberately use an incorrect password it reports that, so I know it is talking to the back end some where
The code is simple
if mobileStoreCanMakePurchase() is true then
answer "Purchasing is available"
mobileStoreRequestProductDetails "com.squidsecurity.baseline.fullreport01"
mobileStoreEnablePurchaseUpdates
mobileStoreSetProductType "com.squidsecurity.baseline.fullreport01", "inapp"
mobileStoreMakePurchase "com.squidsecurity.baseline.fullreport01", "1", "This belongs to me"
else
answer "In-app purchasing is not supported"
end if
Reference Name = 'Full Report'
Product ID = 'fullreport01'
The process is used
1. Create new email account.
2. Verify email account from email from Apple
3. Add new user to sandbox users
4. Create in-app purchase
5. Upload new binary with the in-app code
6. link the two
7. Sign out of device is Setting> iTunes account
8. Upload a new binary onto the device
9. Test (and fail)
I have read every post I can find in both in Livecode and on the Apple sites. Nothing I do gets passed this point
Any thoughts gratefully received
I am trying to get in app purchases working and going in loops. Apart from the IOS 11 issue when testing, now resolved, I cannot get the purchase to go through.
It pops up the prompt for user name and password but will not go passed it reporting 'cannot connect to iTunes'.
I have noticed that if i deliberately use an incorrect password it reports that, so I know it is talking to the back end some where
The code is simple
if mobileStoreCanMakePurchase() is true then
answer "Purchasing is available"
mobileStoreRequestProductDetails "com.squidsecurity.baseline.fullreport01"
mobileStoreEnablePurchaseUpdates
mobileStoreSetProductType "com.squidsecurity.baseline.fullreport01", "inapp"
mobileStoreMakePurchase "com.squidsecurity.baseline.fullreport01", "1", "This belongs to me"
else
answer "In-app purchasing is not supported"
end if
Reference Name = 'Full Report'
Product ID = 'fullreport01'
The process is used
1. Create new email account.
2. Verify email account from email from Apple
3. Add new user to sandbox users
4. Create in-app purchase
5. Upload new binary with the in-app code
6. link the two
7. Sign out of device is Setting> iTunes account
8. Upload a new binary onto the device
9. Test (and fail)
I have read every post I can find in both in Livecode and on the Apple sites. Nothing I do gets passed this point
Any thoughts gratefully received