Dark Corners iOS Auto renewable Subscriptions


More and more applications are switching to a subscription monetization system. Planning to use the subscription system in your application? Then to you here.


Mobius 2019 Moscow Auto-renewable Subscriptions iOS , .


ā€” Mobius 2019 Moscow.



iOS- Mamba. 15 : macOS, Windows, Android, Bada, Tizen Smart TV.


ā€” .


, iOS- , .



  • , .
  • .
  • , ā€” .
  • Ā« Ā» , , , AppStore.
  • Ā« BoostĀ» Ā« Ā» , , .


. .
ā€” , .
ā€” 15% , , 12 , 60 .
ā€” , .


ā€” . - , - , . , , .


: . iOS, Android . , , Android- . , . , . . , . . . , , , , , , . , .



4 , , Ā«Ā». , .



, . , , Apple, , StoreKit, Apple . , . , , , . Apple , Receipt (). Receipt ā€” , - .


, .



-, iOS 7, , Bundle , iOS, . , . -, , , - PKCS#7. payload, , , JSON XML, ANS.1. Receipt , ā€” . . Receipt , , . Receipt AppleId . StoreKit, Receipt .



Apple Receipt, Receipt. .



, , Receipt , , (). ā€” .


.



Receipt , OpenSSL GUID_hash Receipt_hash. GUID_hash Receipt_hash Apple. Receipt ANS.1 . ANS.1 (ans1). , , Objective-C . , GUIDE_hash Receipt_hash, . , Receipt . latest_receipt_info , expires_date. , .


, , . , , . , , .



, , Receipt . , Receipt-, .


Receipt. , . if else , return . .
(exp.date), , , .


.



.



, , , . . ā€” - . ā€” -, .


All in App


, . -, , , NSDefaults. -, , verify, , . -, Jailbreak. , , . Jailbreak, . , , , , , . , , Jailbreak-, , . - , - , , time serverā€™.


, C, Objective-C, , , OpenSSL, . , , , .


ā€” App unlock, API verify



ā€œApp unlock, API verifyā€ , , Apple. ā€” API. , , Receipt Apple, JSON. , , .



, , verify . - , Receipt.


- Ā«Man in the middleĀ». Ā«SSL PinningĀ». SSL . Receipt Apple, .


-, .




, . API, Node.js. Receipt. , . ā€” , , , -, -, .


ā€” All in API



ā€œAll in APIā€, , -, expiration date API.


API, , Receipt, , Receipt, Expiration date , pollingā€™.



. , , . Receipt, Receipt API, . Receipt , . API , , . pollingā€™. polling , API , - Receipt, , Apple. Apple Receipt . Receipt , , .




iOS- . - , . ā€” polling , Receipt- . , . : , , . , , , - , - , , , , , - .


, polling server-to-server notifications. , Apple . , .


Notifications



Notifications callback- URL, iTunes. , , App Transport Security. , SSL-, , Apple. . , SSL . . Notifications Shared Secret, iTunes Ā«passwordĀ». , , Notification. 2019 Notification Ā«unified_receiptĀ», Receipt. Notification . 2019 unified_receipt. Notifications original_transaction_id, .



Notifications , . 9 , 9 . , , GitHub . ā€” INITIAL_BUY, , . DID_FAIL_TO_RENEW ā€” , , . , , DID_RECOVER, , . RENEWAL, , DID_RECOVER, , , RENEWAL ā€” DID_RECOVER. , WWDC 19, 2020 , RENEWAL . CANCEL : , , Apple Care.



, . DID_CHANGE_RENEWAL_STATUS. , . , , Notification, . Notification ā€” DID_CHANGE_RENEWAL_PREF, , , . INTERACTIVE_RENEWAL , , , , iTunes . Notification, , , . , 2019 , PRICE_INCREASE_CONSENT, , .



ā€” Notification , . polling. WWDC Apple , , . ā€” . Notification 100% . 4 , . polling. polling , , . , .



. , , , .


?


, , .



: c , , .
, , -, , -, . , , , - . , API OpenSSL, , . , , , , .


, Apple, , . , . , Receipt Apple. - , , .


, API . - , , , . , .


, .. , . , , Notification, - , .



, , .


, , . , , , , . , , , - , .


. , , 6 A4, . .



, , , , , . . -, , , .. . ā€” , . ā€” , . , , . , , .



. ā€” , . , , purchase, , , . ā€” , . , , finished.



. ā€” , . ā€” , , - . , , . , , , , , .



. , . expiration date ā€” , . , - , , . , - , , , , StoreKit. , . , . . , - , , . , 6 , . , , , , , , , , . , - . , . , , - .



, . , . -, Ā« Ā», , dark pattern , . , , , Ā«Ā». ā€” . , , . , - , Ā«Ā». ā€” . , , , , , , .



. , , Ā«Weather AlarmsĀ», WWDC.



3 . ā€” Ā«Ā», , . -, , UIScrollView , . ā€” , 80$ , . Ā«Ā» , - , .


ā€” Ā«Translate AssistantĀ», Ā«Google TranslateĀ».



Ā«Ā», , . . , , .


ā€” . Ā«QR Code ReaderĀ» ā€” , , Ā«Ā» , , .


37:36:



. Ā«Fitness balanceĀ», , , . .


37:58:



, , , 99$ ā€œā€. , consumable In-App, 100 .


, 2018 TechCrunch. , , , . , , , Apple , . - , , -, , review, , AppStore. , - , .. . - Apple developer , , . , - , Apple .
Boost


, , .


ā€” Grace period.



Grace period ā€” , , . WWDC , 7 Grace period 16% . Grace period iOS , , . , iTunes , , .


ā€” promotion AppStore. AppStore , , .


ā€” , Introductory Offers, 2018 , . , iTunes . .


, , , Subscription Offers. 10 , , . ā€” , . -, .


A/B , , .


iOS 13 StoreKit , AppleId ā€” - .
ā€” Subscription Multiple Apps, , , .


: ?


. , , , , , notification. ā€” notification-. - , , , , , notification-, . , , .


StoreKit, , Receipt URL Apple, , . , URL. . - , : - , , Apple Sandbox , ,



, Ā«App unlock, API verifyĀ», Apple, . , , , .


ā€” . , , , , , , .
. notification-, , , . , , , . Notifications - , , . : , , .




WWDC, :


Auto-renewable Subscriptions


Engineering Subscriptions


Advanced StoreKit


In-App Purchases and Using Server-to-Server Notifications


Best Practices and Whatā€™s New with In-App Purchases


server-to-server notification. notification, , , notification, , . Notification, .




-. Mobius 22 25 -! .

All Articles