Looks like the structure of your app is causing issues with Hydration. You appear to have your config.xml in the root, and then your web assets in a subdirectory of www/. Hydration should work if you have your config.xml and index.html at the same root level. So instead of
<your other www files>
<your other www files>
Hydration should be able to handle this. Its a bug and we'll work on a fix but in the meantime if you'd like to use hydration you should change your directory structure as above.
Disregard last comment -- the bug has been fixed, hydration should work as expected now (be sure to fully rebuild and re-install your app).
Perfect; working on Android and iOS
Thanks for the fix Ryan
I get the exact same error (it works when there is an update) but when I open the app without an update, it says running from local and then gives the error:
There was a network error (file:///data/data/com.qasid.compliments/files/hydra/index.html)
I've rebuilt - removes the install and re-installed from scratch and the same issue.
I'm using the default phone gap build version
Unable to reproduce.
Are you testing on iOS or Android? What version?
I have exact same problem. it was working fine before 4/13/17. works with update but when running local copy ... net:ERR_FILE_NOT_FOUND (file:///data/data/<project>/files/hydra/index.html)
rebuilt/removed/reinstalled - no luck.
android phone: SPH-L720
Reproduced, and looking into it. You can disable hydration for now if this is blocking you.
I am having this issue as well. I have had several prior builds without this issue and it came up recently. Below are repro steps using Ionic 2, which was working in the past. Any advice on how to get this working again would be very helpful.
Device: Nexus 6P
Android Version: 7.1.2
Create a new Ionic 2 app
>$ ionic start testApp sidemenu --v2
>$ cd testApp
>$ ionic serve
>$ ionic platform add android
Prep for deployment to PhoneGap Build
1. navigate to testApp root
2. copy resources/ into www/
3. copy config.xml into www/
4. zip www directory
5. upload to PhoneGap Build in new project
It should build successfully.
Deploy to Android
1. Use a barcode scanner to get url from QR code in PhoneGap Build
2. Download .apk
3. Install app
4. Launch app
Initial screen displays following message and never completes or does anything else:
"Initializing" Please wait ...
Above message appears briefly and Hydra update screen appears:
Hydra has detected a new update!
Tap Update & restart now
Allow app to launch.
Navigate within app to verify it works
Following message displayed:
No Update Found
Will run local version
Error displayed and app can no longer be run:
This should now be fixed. Please do a full rebuild (make sure to click "Rebuild all" to trigger a binary rebuild, or disable and re-enable hydration) and then fully remove and re-install the app to deploy the update to Hydration.
This is still happening to me. I did the "Rebuild all" and uninstalled and reinstalled the app. After rehydrate, still getting "ERR_FILE_NOT_FOUND" with a /data/ address ending in index.html.