- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When i add this line :
<preference name="android-permission" value="com.android.vending.BILLING"/>
in my "intelxdk.config.additions.xml" file and i build my App i got this message :
Added permission "android.permission.com.android.vending.BILLING"
This isn't what i expected and i can't add In App Billing to my app due to this.
I think the Intel XDK automaticaly add the android.permission prefix to any permissions that don't have this prefix. Many of Android permissions have this prefix but not this one.
I found this topic after i posted mine but nobody answered him :
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You do not need to set the BILLING permission if you are using this plugin https://github.com/j3k0/cordova-plugin-purchase to implement in app purchase, the plugin.xml file sets it for you. See the contents of this file from that plugin's repo: https://github.com/j3k0/cordova-plugin-purchase/blob/master/plugin.xml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for you quick answer Paul,
i tried this plugin but when i build my project ii got an error cause this plugin failed to install.
This tutorial here :http://www.html5gamedevs.com/topic/12570-in-app-purchase-mission-accomplished/ is working for some of people but i don't understand how to install a plugin on the intel xdk without it's GUI.
Now i'm working with this one :
https://github.com/Wizcorp/phonegap-plugin-wizPurchase
But the permission is not added for unknown reasons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In scanning the plugin.xml file in the repo you are pointing to, they appear to have left out the permissions (it should look something like the following, which I extracted from the other plugin I referenced you to):
<config-file target="AndroidManifest.xml" parent="/manifest"> <!-- In-App Billing Permission --> <uses-permission android:name="com.android.vending.BILLING" /> </config-file>
To use this plugin with the XDK you're going to have to clone it (download this ZIP) and edit your downloaded copy and then import it as a local plugin. This is due to the fact that you need to modify the plugin per the first line of these instructions: https://github.com/Wizcorp/phonegap-plugin-wizPurchase#android -- that file being referred to in the README.md is in the repo, here: https://github.com/Wizcorp/phonegap-plugin-wizPurchase/blob/master/platforms/android/res/values/billing_key.xml
You can add the missing permission (above) into your copied plugin.xml file, or add it in using the XDK GUI via the "Add Permissions" field in the Build Settings. See the this doc page for some additional details: https://software.intel.com/en-us/xdk/docs/cordova-for-android-build-options
See these instructions (about halfway down) for importing a local plugin with the current version of the XDK: https://software.intel.com/en-us/xdk/docs/adding-third-party-plugins-to-your-xdk-cordova-app
Or, better yet, try using the Early Access version of the XDK to make this easier, see these instructions: https://software.intel.com/en-us/xdk/docs/early-access-project-plugin-selection You can install the EA version alongside the current version of the XDK, just do not run both at the same time. You will need to make a copy of your project directory before you open it with the EA version, due to the project files are not backwards compatible. See this link for additional details: https://software.intel.com/en-us/xdk/docs/lp-early-access

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page