Hydration not working on android 4.4

  • 1
  • Question
  • Updated 4 years ago
Hi,
Is anyone else experiencing problems with Hydration in PG-Build on Android 4.4 device hangs with a message :

Initializing...Please Wait ...

and a spinner spins indefinately

Any work arounds or solutions??
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Are you sure it works fine on other Android versions?
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
@Petra V

I dont have any other versions to test on surely using the latest phone Gap build supports android 4.4??
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Certainly. But your question seems to imply that it's an Android 4.4 issue. That's why I asked.

I assume that something in your app or its config is wrong. Difficult to guess what, though.
If your zip file is available online somewhere, please post its url and I'll be happy to have a look.
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
What would you suggest - i have one custom plugin installed (app-version-plugin) i cant upload the project its for a private client sorry. Ill get hold of another droid phone tonight but itll be old version 2.3.4 - Iread other users have problems with hydration wit Android 5.0+
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Let me ask you a bunch of questions, then:
1. Does your build log show any errors or warnings?
2. What PGB version are you using?
3. Can you confirm that you have both config.xml and index.html in the root of your zip?
4. Are you fetching any dynamic content from a remote server at startup, using ajax/xhr?
5. Are the paths and filenames for your Android splashes correct? Did you include the splashscreen plugin from npm?
6. Do you pin the versions for the plugins? If so, are these the currently latest versions at npm?
7. Do you use a debug- or release version of the apk?
8. Do you have exactly one index.html file in your assets?
9. Does your app act properly without Hydration?
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
hi
1. see screenshot of debug
2. PGB version cli-5.2.0
3. see uploaded screenshot of root of uploaded zip file containing the app
4. No not fetching dynamic data - im actually testing at the moment only one html page called index.html and its very basic
5. Not using splash screen yet - app should just open index.html
6. Do you pin the versions for the plugins? If so, are these the currently latest versions at npm? - Don't understand that question??
7. its debug
8. yes, see the uploaded screenshot

( note: i've xxxxxx out the app name in the debug file to protect my clients privacy )


Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Thanks. Looks fine (except the fact that config and index are not in the root of the zip)
(5) won't do. PGB will insert default splashes, then. Do you at least have the splashscreen plugin included?

What about Q9?
9. Does your app act properly without Hydration?
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
Hi, Petra,
I'll try placing all files on the root of the zip - i thought a containing folder to maintain the structure was fine - but ill try without and see if that works ...

Yes the splash plugin is in my config file (line 39) :

9. Yes, my app works as expected without problems when Hydration is disabled.

ill get back with an update ....
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
still not working after just zipping the contents and not the www folder

oh well i suppose Hydration isnt a feature im going to be able to use.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I'm out of ideas, too. Sorry.
Hopefully someone else chimes in to at least confirm that Hydration works with their apps. If something is wrong with Hydration itself, we could be searching for years....
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@gridev,
to be clear, I do not use hydration - anymore

Recently some people have had to swtich servers.
Can you briefly talk about the steps you are taking to connect to hydration?

Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Are you perhaps mixing up hydration and the debug servers?
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
@ JesseMonroy650 - i think Petra is correct, not sure that the PGB server is an issue here. BTW I am not using the debug option i actually use a local version of weinre in my dev IDE.

One thing i didnt mention is that the directory structure for the app is created with the PhoneGap Desktop App which im trying. PG-Desktop puts config.xml one-level above the www folder - so you have to place it in the www root folder before zipping for PhoneGap Build. Im wondering if this is creating a problem since Hydration wraps your app in an invisible wrapper and maybe it expects an assets directory again which phoneGap Desktop doesnt create ... im just clutching at straws now ...

BTW ive changed my username since starting this thread ...
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@GonePhab (Gridev)
Thanks for noting the name change. You are not clutching at straws.

You can NOT use Phonegap Desktop App with Phonegap Build
To be clear, read this blog post:

Phonegap Desktop App - What it is and is not

No need to leave comment. Just read.
Jesse
Photo of GonePhab

GonePhab

  • 14 Posts
  • 2 Reply Likes
Thanks for that - this would have saved me 2 days of messing about i am intending to use ionic anyway i just wanted to see what PDA could do ... now i know.

JesseMonroy650 " No need to leave comment " -
Sorry not exactly a comment but had to reply just to put this to bed for anyone else reading it.

Cheers.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@GonePhab
Okay. comments welcome, just not need since that blog is not public YET.

Best of Luck
Jesse