IAP in App Store

J. Landman Gay jacque at hyperactivesw.com
Fri Sep 17 18:25:38 EDT 2021


Yes, I tested on real devices, both an iPad and an iPhone. I also just set up testing on the 
Google Play Store and got the same non-results.

I will look at the test stack in the lesson, thanks Panos.


On 9/17/21 3:22 PM, panagiotis m via use-livecode wrote:
> Hello Jacque,
> 
> I am away from my machine now, so I cannot test, but I would suggest you
> try with the simplest example first, that is to use the sample stack of the
> lesson, and just change the in-app product IDs to match yours. If this
> works for you (by "works" I mean at least to show the in-app purchase
> dialog), it means that something in your script blocks the communication.
> If this is the case, I am happy to investigate until we find the culprit.
> 
> Kind regards,
> Panos
> 
> Ps: I take it you are testing on a physical device, not in the simulator,
> is that correct?
> 
> On Fri, 17 Sep 2021, 22:51 J. Landman Gay via use-livecode, <
> use-livecode at lists.runrev.com> wrote:
> 
>> Panos, the LC lesson says the mobileStoreMakePurchase command sends the
>> request and begins the
>> purchasing process. The behavior I'm seeing is that the request isn't
>> being sent at all.
>>
>> The older syntax has a specific mobilePurchaseSendRequest command, which
>> the newer syntax does
>> not use. Should I add that to my script? Will it hurt if I do?
>>
>> On 9/17/21 1:34 PM, panagiotis m via use-livecode wrote:
>>> Hello Jacque,
>>>
>>> How do you initiate a purchase? Have you called
>>> mobileStoreEnablePurchaseUpdates? This command creates a "channel" for
>>> communicating with the app store. Since you get no response at all, it
>>> seems for some reason this channel is not created. Can you share your
>>> purchase code?
>>>
>>> Kind regards,
>>> Panos
>>>
>>> On Fri, 17 Sep 2021, 19:39 J. Landman Gay via use-livecode, <
>>> use-livecode at lists.runrev.com> wrote:
>>>
>>>> After initiating a purchase I get nothing. No dialog, no errors. It acts
>>>> like I never pushed the button, the app just sits there. I'm logging
>>>> everything. The log shows my comment that I'm initiating a purchase.
>> There
>>>> are no other log entries until the timeout message.
>>>>
>>>>
>>>> The product ID matches the one in iTunes Connect exactly, because I
>> copied
>>>> it from there and pasted it into my script. (I've hard-coded a single
>>>> product just for testing because I needed one that was a non-renewable
>>>> subscription so that I could repurchase several times.)
>>>>
>>>>
>>>> There's one thing I didn't mention. Our Ruby programmer set up a server
>>>> API
>>>> in Connect so she could get notice of any refunds. Does that mean that
>> all
>>>> responses would be going to the server? Even so, you'd think I'd get a
>>>> dialog about my Apple ID. She's turned it off for now and I'll try again
>>>> shortly, but she doesn't think that would be an issue. Do you know?
>>>>
>>>> --
>>>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>>>> HyperActive Software | http://www.hyperactivesw.com
>>>> On September 17, 2021 2:48:49 AM panagiotis m via use-livecode
>>>> <use-livecode at lists.runrev.com> wrote:
>>>>
>>>>> Hello Jacque,
>>>>>
>>>>>>>>>> instead the next call to make a purchase should pop up a dialog
>>>> asking
>>>>> for an Apple ID
>>>>> Yes, this is what should happen. What do you get when trying to make a
>>>>> purchase?
>>>>>
>>>>> I take it that the in-app purchase product IDs in your script do match
>>>> the
>>>>> ones you set up in iTunes Connect, is that correct?
>>>>>
>>>>>>>>>> Is the lesson accurate? I get no response at all from
>>>>> purchaseStateUpdate.
>>>>> Yes, the lesson is still accurate, I did test it 2 weeks ago. The
>>>> response
>>>>> from purchaseStateUpdate will arrive *after* you get the purchase
>> dialog
>>>>> and click Buy or Cancel.
>>>>>
>>>>> Kind regards,
>>>>> Panos
>>>>> --
>>>>>
>>>>>
>>>>> On Fri, 17 Sept 2021 at 01:27, J. Landman Gay via use-livecode <
>>>>> use-livecode at lists.runrev.com> wrote:
>>>>>
>>>>>> I'm trying to test IAP in the App Store. I have a tester account and
>>>> I'm a
>>>>>> verified test user
>>>>>> with a new Apple ID that is not used anywhere else.
>>>>>>
>>>>>> Following the LC lesson, it says to sign out of the app store in
>>>> Settings.
>>>>>> I had to look up how
>>>>>> to do that in iOS 14, and did so. It also said not to sign in again
>>>> while
>>>>>> in Settings, instead
>>>>>> the next call to make a purchase should pop up a dialog asking for an
>>>>>> Apple ID. It does not.
>>>>>>
>>>>>> Is the lesson accurate? I get no response at all from
>>>> purchaseStateUpdate.
>>>>>> There's a handler in
>>>>>> the script that triggers a timeout after 2 minutes, and that's all I
>>>> get.
>>>>>>
>>>>>> How do I trigger the sign-in dialog so I can log in as my test
>> account?
>>>>>>
>>>>>> --
>>>>>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>>>>>> HyperActive Software           |     http://www.hyperactivesw.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> use-livecode mailing list
>>>>>> use-livecode at lists.runrev.com
>>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>>> subscription preferences:
>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>> _______________________________________________
>>>>> use-livecode mailing list
>>>>> use-livecode at lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>> --
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list