PhoneGap build is adding an extra soft button to my application.

  • 1
  • Question
  • Updated 6 years ago
  • Answered
When I build my app locally using eclipse and deploy to a device I see my top and bottom headers correctly. After using adobe phonegap build I have a new soft button at the bottom of the screen and have to scroll to see my bottom header.
PhoneGap Build version with extra soft button

Local build version without extra softbutton.
Photo of Charles H

Charles H

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 6 years ago

  • 1
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
What does your config.xml look like? Post it here within <code> </code> tags. I'm thinking that maybe the preferences for android-minSdkVersion or anrdroid-targetSdkVersion might cause that.
Photo of Charles H

Charles H

  • 3 Posts
  • 0 Reply Likes
Hi John,

Looks like you were correct. In my case the issue wasn't the values specified in those elements, it was the fact that I did not have those elements in the config.xml file at all.

I added the elements (min version of 11 and target version of 19) and the extra soft button disappeared.

Now of course the question is ... if I wanted such a soft button how would I go about creating one intentionally and would it be cross platform or an android specific artifact?
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
If you wanted another button at the bottom, I would think you'd just add that to your html file.
Photo of Charles H

Charles H

  • 3 Posts
  • 0 Reply Likes
Yes....

If I wanted a html button. What if I wanted an native android task bar with soft buttons that would only show up under specific condition?
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
You'd probably need to develop a phonegap plugin.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I found several articles that claim, that

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11" />

in the Android Manifest would introduce the additional menu button on the right side of the soft key bar.
I haven't tried it, but adding these 'SdkVersion' variables and values (as preferences) to your config.xml might be translated to the Manifest line by PGB.