You must use the same ID that we used in the init() method of the nativescript-purchase plugin. – Product Id – This one is very important. This is not shown to the end user and is only for internal use. – Reference Name – You can use anything for this. So let’s fill in the details for that product: When we created the application in the previous part of the tutorial we have said that our consumable product will be product2. On the New In-App Purchase screen we go and enter the details for our product. We will start by adding a consumable product first. We will create one consumable and one non-consumable products. So we will be working with the first 2 options. When we press the plus button to add our first product we are presented with the following wizard that asks us what type of product we will add.Īs of writing of this post the nativescript-purchase plugin supports only in-app purchases. ![]() Since we are going to do Sandbox testing, you can safely ignore the Information about production products. Once we have our App created we need to go the App settings screen Features -> In-App Purchases. So if you do not see it in the drop down, don’t worry, just wait 5-10 minutes and it should appear. NB: It can take up to couple of minutes for iTunes Connect to pick up your new App ID. For Bundle ID make sure you select the bundle that we have just created. On the New App screen we select iOS and fill in the rest of the details. You do not need to upload the app binary or wait for Apple’s approval, it just needs to be registered. Note that even if you intend to do Sandbox testing only, you still need to register your app in iTunes Connect. ![]() Once we have the App ID set up we need to head over to iTunes Connect and add our application there. ![]() And we need to use Explicit App ID, because wildcard App IDs do not support in-app purcahses. For the App ID Suffix you must select Explicit App ID and type exactly the name as it is present in the package.json file nativescript section the id attribute. For the App ID, you can select whatever description you want. We do this in the “Certificates, IDs & Profiles” menu, then “App IDs” and click on the “plus” button on the top right. The first thing we need to do is register a new App ID in the Apple Developer portal. In this part I will guide through adding the necessary settings on the Apple Developer portal and iTunes Connect, create some sandbox users and test your workflow. In the previous part I’ve shown you how to create a small NativeScript application and add a simple purchase workflow using the nativescript-purchase plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |