rotate causes app to reload

  • 2
  • Problem
  • Updated 9 years ago
Recently, an update must have passed that made it that when you rotate, or slide out the keyboard, the app reloads.

i believe i narrowed it down to my config.xml, can someone please take a look at it?


<?xml version="1.0" encoding="UTF-8"?>
<widget
xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "P82QFZ75WJ.com.hamptongolfclubs.test"
version = "1.0.0"
>

<name>
Test
</name>

<description>
This application is a test.
</description>

<author
href="http://hamptongolfclubs.com"
email="me@hamptongolfclubs.com">
me
</author>

<gap:platforms>
<gap:platform name="android" minVersion="2.1" />
<gap:platform name="blackberry" project="widgets"/>
<gap:platform name="ios"/>
</gap:platforms>

<icon
src="logo.png"
width="477"
height="475"
hover="false"
gap:role="default" />

<feature name="http://api.phonegap.com/1.0/notification"/>
<feature name="http://api.phonegap.com/1.0/file"/>
<feature name="http://api.phonegap.com/1.0/network"/>

<preference name="orientation" value="default"/>

<gap:splash
src="logo.png"
width="477"
height="475"
/>
</widget>
Photo of silverhawk184

silverhawk184

  • 21 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 2
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
What platform is the issue happening on?

Hardeep Shoker
Photo of silverhawk184

silverhawk184

  • 21 Posts
  • 0 Reply Likes
Android v2.2 is the only one I tested
Photo of mconway

mconway

  • 1 Post
  • 0 Reply Likes
I've noticed this too. There's the configChanges option that can be added to AndroidManifest.xml if using Eclipse, but a similar option doesn't seem to be in the config.xml file.
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Hello,

I will put this as a task on my todo list. I'm first going to be updating all the platforms to 1.0.

Hardeep Shoker
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
hmm,

So I took a look into the issue and was not able to produce it on a 2.3.3 device.

I simply used the get started app and added the preference for orientation.

Give that application a try and let me know your results.

https://github.com/alunny/phonegap-start

Hardeep Shoker