Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

IOS Promoted IAP
Started by sararose Aug 09 2018 03:41 PM

2 replies to this topic
iap store plugin promoted purchases login purchase handler
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sararose

[GLOBAL: userInfoPane.html]
sararose
  • Observer

  • 12 posts
  • Corona SDK

Hey all,

 

I've implemented IOS promoted IAP using Corona store library and would like to share what I feel is a deficiency found in the library.

 

I used the following link for testing. 

 

itms-services://?action=purchaseIntent&bundleId=my.package.id&productIdentifier=my.iap.product.id

 

Corona SDK IAP library encapsulated in store module receives the intent and forwards it to the listener specified in the init call like so:

store.init( transactionListener )

The transactionListener is fired after the user purchases or cancels the transaction or if transaction failed. 

There are couple common dialogs that are typically presented:

 

1) Login dialog - allows the user to input their credentials before the purchase

2) Confirm IAP dialog - displays the IAP product price and allows the user to either buy or cancel

 

 

As it stands today there appears to be no way to execute any LUA code prior to user taking some kind of action on the above dialogs.  Only after taking an action of some type the listener will fire with the state variable set to either "cancelled" or "purchased".

 

With the library behaving this way it's not possible to customize the user's IAP "landing" experience.  Whatever your application loads when it starts will be displayed.  In some cases it can even show the black screen.

 

It would be great if Corona could add another event type ( call it promoted_iap or something similar) prior to displaying any of the IOS IAP dialogs. 



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,125 posts
  • Corona SDK

What plugin are you talking about?  Please, always link the topic of your discussion.



[TOPIC: post.html]
#3

sararose

[GLOBAL: userInfoPane.html]
sararose
  • Observer

  • 12 posts
  • Corona SDK

I replaced "plugin" with "library" in my original post.  It's the store library that comes out of the box with Corona SDK.

https://docs.coronalabs.com/api/library/store/index.html

 




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: iap, store, plugin, promoted, purchases, login, purchase, handler