Straight to your questions:
: "is this the official/suggested plugin for inApp purchases on iOS and Android? In fact it reference the v.4.0.0 of this plugin which is at v.5.0.0. However, the installation suggestion for Appbuilder CLI on the webpage of the plugin ("appbuilder plugin add "Purchase"") didn't actually load the folder in my project. why?
: Yes, this is the official Cordova plugin for In-App purchases and it should work flawlessly for both the Android and iOS platforms. You are absolutely correct that the plugin's version on our side is v4.0.0 from the j3k0's repository. This is so, as we haven't approved the latest version at this stage, but I believe it will be available next month. Further, installing the plugin with appbuilder add
is not expected to create a folder under Plugins in your project. This is so, as when you install a Telerik Marketplace plugin it is only being referenced in the project and its source files are imported during cloud build. Still, you should notice that the plugin is installed after the add command in the properties of the project. For example, executing the appbuilder plugin
command should print the Purchase plugin among the others. I have created a simple video showing this
: "I tried to follow the suggestions of this post, but I found it quite confusing. The 3-steps tutorial Tina suggested is related to PhoneGap and not Appbuilder; however I believe I managed to install the plugin with "appbuilder plugin fetch "github-link"" (is this correct or I need some other step?). In addition, the code shown in the tutorial does not match with the library/documentation of the InAppPurchase plugin; for instance it refers to a 'storekit' variable, while the InAppPurchase plugin has a 'store' variable, and it uses different methods like 'storekit.purchase()' while your verified plugin has a 'store.order()' method. Why it that? Am I missing something?
: As explained above, you can install the plugin following the approach shown in the video. This will allow you to configure its Billing Key accordingly and is the recommended approach for installing Telerik Verified plugins in the AppBuilder CLI. Still, the approach you have followed is also correct, but instead of the Telerik Verified version of the plugin it installs the official version in the j3k0's repository. The downsides of this is that, this version hasn't been verified on our side and if issues arise we might be unable to help. As for the differences in the docs, I am afraid I didn't find such, as both the v4.0.0 docs seem similar to me. In example, the verified plugin uses the store object
as well as the official plugin
. Please correct me if I have missed something here.
: "I tried to run the InAppPurchase-DemoApp, but I had this error when I ran "appbuilder deploy ios --debug":
: Judging from the error message, you will need to configure the sample application in the AppBuilder CLI to use the same app ID as the development certificate you have imported. To do this, you can use the following command:
$ appbuilder prop set AppIdentifier <
app id as configured in the iOS development cert>
After that, you should be able to build and deploy the app on iOS devices.
I hope this helps.