In-App purchases not supported on this device

I am trying to get my IAP to work, I know there are many other threads on this forum about this topic, but I can’t find a solution. I have followed the guidelines,  creating an adhoc provisioning profile, creating test user accounts, but I can’t get it to work.

I am testing on an iPad, has anyone come across this problem and solved it before? 

I had no problems whatsoever to get IAP working for Android, why does Apple have to make it so complicated?

Thanks,

Gooner87

Hi Gooner,

Yeah, it can be a bit of a challenge to get IAP working the first time.  It’d be helpful to have some more info on your situation:

  • What is the exact error message you’re seeing?  (A google search for “in-app purchases not supported on this device” didn’t turn up anything other than this thread)

  • Where (e.g., in the console, as an alert within the app, etc.) and when (e.g., during the build process, when you run the app before trying an IAP, when you actually try an IAP, etc.) does this error appear?

  • What version of iOS are you running?

  • On your iPad, if you go to Settings, then Restrictions, are In-App Purchases enabled?

  • Andrew

Hi Andrew,

I built my IAP in my app based on the sample provided by corona, so basically the code has not changed much from that…just the layout. I am getting this message when I enter the scene where my IAP should be listed. It shows up as a native alert and is also printed onto the scene.

I am running version 6.1.3 on an iPad and I have checked that In-app purchases are enabled.

Thanks.

HI Gooner,

Quickly perusing the IAP sample app, I see that the message “In-app purchases is not supported on this device.” is part of a function called showStoreNotAvailableWarning().  That function is called in a few different situations, one of which is when the scene is built if store.isActive is not true.  store.isActive is unfortunately not mentioned in the SDK documentation, but it was mentioned in some blog posts.  It only relates to Android, so what you might do is modify the code to only check it if the device type is Android, and not bother to check it if it’s iOS.

  • Andrew

Hi Andrew,

Thanks! I will try that. I am fairly new to developing with iOS, I was wondering how to get logcats from iPad/iPhone when you are running an app on the device. e.g. when I am testing my app on android devices, I have it connected to eclipse so I can see the console output as I am running it

No problem, I hope it helps.

To see the logs on your iPad as you’re running your app, connect it to your Mac, run XCode, select Window|Organizer, and on the left side click Console.

  • Andrew

Hi Gooner,

Yeah, it can be a bit of a challenge to get IAP working the first time.  It’d be helpful to have some more info on your situation:

  • What is the exact error message you’re seeing?  (A google search for “in-app purchases not supported on this device” didn’t turn up anything other than this thread)

  • Where (e.g., in the console, as an alert within the app, etc.) and when (e.g., during the build process, when you run the app before trying an IAP, when you actually try an IAP, etc.) does this error appear?

  • What version of iOS are you running?

  • On your iPad, if you go to Settings, then Restrictions, are In-App Purchases enabled?

  • Andrew

Hi Andrew,

I built my IAP in my app based on the sample provided by corona, so basically the code has not changed much from that…just the layout. I am getting this message when I enter the scene where my IAP should be listed. It shows up as a native alert and is also printed onto the scene.

I am running version 6.1.3 on an iPad and I have checked that In-app purchases are enabled.

Thanks.

HI Gooner,

Quickly perusing the IAP sample app, I see that the message “In-app purchases is not supported on this device.” is part of a function called showStoreNotAvailableWarning().  That function is called in a few different situations, one of which is when the scene is built if store.isActive is not true.  store.isActive is unfortunately not mentioned in the SDK documentation, but it was mentioned in some blog posts.  It only relates to Android, so what you might do is modify the code to only check it if the device type is Android, and not bother to check it if it’s iOS.

  • Andrew

Hi Andrew,

Thanks! I will try that. I am fairly new to developing with iOS, I was wondering how to get logcats from iPad/iPhone when you are running an app on the device. e.g. when I am testing my app on android devices, I have it connected to eclipse so I can see the console output as I am running it

No problem, I hope it helps.

To see the logs on your iPad as you’re running your app, connect it to your Mac, run XCode, select Window|Organizer, and on the left side click Console.

  • Andrew