Reputation: 149
I would like to limit the use of my Phonegap app to tablets only. Reading this page it seems to be possible via config.xml file.
In my config.xml file I made this changes:
xmlns:android = "http://schemas.android.com/apk/res/android"
Added
<gap:config-file platform="android" parent="/manifest">
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
</gap:config-file>
When I build the app, I can't see changes on the AndroidManifest.xml. Where is my error? This procedure should works both with local build and remote build using build.phonegap.com?
Thanks in advance.
Upvotes: 0
Views: 238
Reputation: 149
Ok, after some hours I understand what happen: the gap:config-file works fine only if you use the PhoneGap Build (build.phonegap.com). After that I used android-apktool to get the AndroidManifest.xml from the generated .apk and I see my configuration.
Upvotes: 1