can't find handler mobileStoreEnablePurchaseUpdates

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 50
Joined: Sun Feb 24, 2013 12:29 pm

can't find handler mobileStoreEnablePurchaseUpdates

Post by mvillion » Tue Sep 26, 2017 5:22 pm

Hi

Ok. This one has me confused.
I have written an app and it work great. I want to implement in-app purchases and followed the instructions at
http://lessons.livecode.com/m/4069/l/18 ... e-appstore

Simples, or so it seems .but. I get an errror - can't find handler mobileStoreEnablePurchaseUpdates
So I tried other mobilestore commands and get the same - can't find handler.

Ok. So it looks like I need a support stack, library or extension to support it. Hunt, hunt, hunt - Can't find a reference to what I need.

Grumble. Grumble
I hunt the forums and the only other post similar to this does not have a response.

ARGH!

So
What do I need to do to enable the mobilestore commands?

I am using livecode 8.1.6

Thanks in advance

Matt

LiveCode_Panos
Posts: 304
Joined: Fri Feb 06, 2015 4:03 pm

Re: can't find handler mobileStoreEnablePurchaseUpdates

Post by LiveCode_Panos » Tue Sep 26, 2017 5:36 pm

Hi Matt,

Are you testing on an iOS device? These commands are not expected to work on desktop or iOS simulator.

Best,
Panos
--

PS: Can someone with admin access move this thread to Platform Specific -> iOS Deployment?

mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 50
Joined: Sun Feb 24, 2013 12:29 pm

Re: can't find handler mobileStoreEnablePurchaseUpdates

Post by mvillion » Tue Sep 26, 2017 5:50 pm

oh.
That is a nice to know. That would explain it.

I find it amazing that it is not mentioned anywhere.

Thanks

:D

LiveCode_Panos
Posts: 304
Joined: Fri Feb 06, 2015 4:03 pm

Re: can't find handler mobileStoreEnablePurchaseUpdates

Post by LiveCode_Panos » Tue Sep 26, 2017 5:55 pm

Hi Matt,

All the commands/functions that begin with "mobile*" work only on mobile (iOS+Android), in both device and simulator.

However, the In-App Purchase related commands only work on a physical device (this is a restriction imposed by Apple, not LiveCode). This is mentioned in the lessons IIRC.

Best,
Panos
--

mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 50
Joined: Sun Feb 24, 2013 12:29 pm

Re: can't find handler mobileStoreEnablePurchaseUpdates

Post by mvillion » Tue Sep 26, 2017 5:59 pm

Hi

You mention that it is mentioned in a lesson. I have read the livecode documentation and did not see it.
Where is it mentioned because it makes me wonder what else I missed.

Thanks
(I also reported this post to the admin as it is off topic- asking them to move it to the correct forum)

LiveCode_Panos
Posts: 304
Joined: Fri Feb 06, 2015 4:03 pm

Re: can't find handler mobileStoreEnablePurchaseUpdates

Post by LiveCode_Panos » Tue Sep 26, 2017 6:37 pm

Hi Matt,

You are right, this is mentioned only in a comment in the lesson you linked:

"Moreover, you have to use LC 6.7 or above, and make sure you test your in-app purchases on a physical Apple mobile device. Testing on simulator may not work. Furthermore, it is recommended to have a test account set up in iTunes Connect so that you can test your in-app purchases without spending any money."

Best,
Panos
--

Post Reply

Return to “iOS Deployment”