24 Commits

Author SHA1 Message Date
b358e0bce4 Refactor IAP extension for Android and iOS platforms 2024-04-28 10:07:39 +02:00
406a594c8d Refactor IAP extension for Android and iOS platforms 2024-04-26 22:21:37 +02:00
609071876c Implemented support for account identifiers for Google Play and StoreKit. 2024-04-21 21:55:20 +02:00
JCash
92d90bb4de Fixed nul pointer deferencing 2021-10-06 09:55:49 +02:00
Björn Ritzl
6e975b67de Merge branch 'master' into dev-remove-init-count 2021-04-28 10:08:12 +02:00
Björn Ritzl
f3ee2361ac
Merge pull request #38 from defold/issue-35-crash-on-iap-oncommand
Get the Lua context from the callback and not the listener
2021-04-28 10:06:24 +02:00
Björn Ritzl
c21a8ea984 Update iap_ios.mm 2021-04-28 09:46:23 +02:00
Björn Ritzl
1c829abbfb Check that the extension hasn't been recreated while fetching products 2021-04-28 08:59:16 +02:00
Björn Ritzl
80ba15bf22 Do not track init count for multiple Lua states
None of our other extensions support this
2021-04-28 08:54:38 +02:00
Björn Ritzl
5843f631af Get the Lua context from the callback and not the listener 2021-04-27 19:52:14 +02:00
Björn Ritzl
a48ca394bb Allocate empty string
Fixes #26
2020-08-19 10:06:39 +02:00
Björn Ritzl
497d0dee1e Added iap.acknowledge 2020-07-24 00:10:04 +02:00
Mathias Westerdahl
e79b5cfb36
Merge pull request #22 from dyukorev/master
Pending transactions fix
2020-04-01 10:10:41 +02:00
Denis Dyukorev
564df1e279 Rename function argument to match naming requirements. 2020-03-31 16:27:22 +07:00
Björn Ritzl
607b4a117e Update iap_ios.mm 2020-03-09 11:57:14 +01:00
Björn Ritzl
38656e973c Check if title or description is null
Fixes #18
2020-03-09 11:46:01 +01:00
Denis Dyukorev
cbc1f659c1 Add transactions handler to init method according ios documentation it's important to add handler on application:didFinishLaunchingWithOptions: (https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_for_the_payment_queue?language=objc), move observable commands to separate queue so it can be processed separately and after listener setup, add IAP_ProcessPendingTransactions function to resolve pending transactions on iOS. 2020-03-04 17:26:52 +03:00
Filazopovich Gennady
eda78dda4f Fix incorrect numbers in transaction date for some Arab countries 2020-03-04 15:39:30 +03:00
Alexey Gulev
1a778d0e98 fix crash 2020-01-16 23:16:21 +01:00
mathiaswking
8eebb889e3 Use Lua callback handling functions from DefoldSDK 2019-11-15 19:04:23 +01:00
mathiaswking
f784c187b2 Added thread safe command queue for iOS 2019-11-14 18:26:55 +01:00
mathiaswking
bbab40a315 Made iOS functions static
Removed old documentation
2019-11-14 10:50:07 +01:00
Alexey Gulev
af80e05796 Fixed pcall 2019-09-20 20:06:35 +02:00
Alexey Gulev
0fa8400cac Initial commit 2019-09-17 16:50:00 +02:00