Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб React Native In-App Purchases (iOS) - incl Backend and Sandbox testers from scratch в хорошем качестве

React Native In-App Purchases (iOS) - incl Backend and Sandbox testers from scratch 4 года назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



React Native In-App Purchases (iOS) - incl Backend and Sandbox testers from scratch

In this video I will go in depth and show the entire process of adding in-app purchases to your React Native app for iOS. Android video:    • React Native In-App Purchases (Androi...   NOTE: at 52:08 where I write renewalHistory[renewalHistory - 1], this works fine in the test environment. HOWEVER, it seems that when the app is published, this doesn't work and you should instead do renewalHistory[0]. I fixed this in my app by first trying to validate using the production URL, using renewalHistory[0]. If you receive a 21007 status code after trying to validate with the production URL, you validate using the test URL using renewalHistory[renewalHistory.length - 1] https://pastebin.com/GmQFnJBu here is some code to help you out :) Extra information: In case of confusion with receipt validation, what we're doing is sending the purchase to apple and they respond with a status code and more detailed information about the purchase. If the purchase is valid then a status code of 0 is returned. In this video, I don't check for status codes. However if you wanted to then it's very easy to implement. For example, if you're using the react native iap validation function When you do receipt = IAP.validateReceiptIOS(...) You have access to receipt.status, based on the status code you could do different things. Here is the list of status codes: https://developer.apple.com/documenta... 00:00 Introduction 01:15 App Store connect setup 16:02 React Native code setup 19:47 Fetching and displaying our products 34:11 Coding the purchase functionality 39:17 Setting up a sandbox test user 43:06 Getting previous purchases 46:44 Validating receipts without a backend 52:42 Improvements to app 56:54 Handling errors 59:00 Firebase setup 01:02:27 Firebase serverless functions introduction 01:06:52 Validating receipts in the backend using Firebase

Comments