Jamie5245261
Posts: 0
Joined: Thu Feb 20, 2014 2:01 pm

PhoneGap's menubutton works but its backbutton does not.

Hi gang,

I have managed to figure out how to do things with the device API (PhoneGap) and even had my backbutton working at one point (it'd take the user to either the home page or, if they were on the home page already, would exit them from the app). Today it does not seem to be working and I don't know why. I haven't made any code changes that should have affected it as best as I can tell. The backbutton previously worked on multiple devices, so I think we can rule out the device itself as being the problem.

And, just to make things more interesting, my PhoneGap menubutton works like a charm. I don't understand how it's possible for the menubutton to work but not the backbutton. As part of the debugging process I created some simple testing code, below at reference, that fires an alert message. All of the alerts work except for the backbutton one. How can that be?

Can you provide any guidance? What do I need to do to get this backbutton running again?

References:
ul
liMy app (Last Letter) , shared with appery./li
liMy PhoneGap testing code: http://pastebin.com/Uzttx28g/li
liMy config.xml for my android source: http://pastebin.com/w7qe7Wn5/li
liMy AndroidManifest.xml file: http://pastebin.com/5NsRvcA4/li
liAppery GetSatisfaction: "Device BackButton Work only on Appery.io Tester ??" (https://getsatisfaction.com/apperyio/... )/li
liAppery GetSatisfaction: "Program the backbutton on mobile phone" (https://getsatisfaction.com/apperyio/... )/li
liAppery GetSatisfaction: "How to Cancel the action of navigating to a previous screen when the Backbutton is clicked" (https://getsatisfaction.com/apperyio/... )/li
/ul

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

PhoneGap's menubutton works but its backbutton does not.

Hi,

We'll check this but it may take some time.

Jamie5245261
Posts: 0
Joined: Thu Feb 20, 2014 2:01 pm

PhoneGap's menubutton works but its backbutton does not.

Thanks Igor. I'll be looking forward to discovering what this was.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

PhoneGap's menubutton works but its backbutton does not.

Hi Jamie.

This is a bug.Will be fixed on Production in mid-april.

But there is a workaround: https://getsatisfaction.com/apperyio/...

Jamie5245261
Posts: 0
Joined: Thu Feb 20, 2014 2:01 pm

PhoneGap's menubutton works but its backbutton does not.

Hi Alena,

I guess I'll have to wait until mid-April. I had already implemented the workaround prior to publishing this post (see item #3 in my References section, above). Unless of course there's anything else I'm missing.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

PhoneGap's menubutton works but its backbutton does not.

Hello!

This bug should be fixed now.

Return to “Issues”