- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(two images added)
This is my second post on this same project of mine. I've uploaded logs and tried to explain what is happening. I don't have any answer. Im seeing things in the console that i never saw before, "backend-services.js" ive never seen, missing resources, i know the two different ERR are to be ignored but i still dont know how anyone would be "comfortable" seeing that in the console every time.
Regardless, I can attach a working copy of this project if that would help. Before XDK updated it was all working fine. Now after update, with zero code changes, i went to emulate my project and it crashed. The first screen is a login screen that sends an AJAX POST to my amazon server to get login credentials and when i run that first function it shows the XDK splash screen and then crashes.
This app has multiple thousand line JS files and large index.html files, and the project was due to be released next week and submitted to the App store tomorrow. I lost all day yesterday, and now i feel my only solution is to start from scratch and copy paste code where i can and rebuild the app. I've begun recreating the login page only and
I will give it one more, day but i have investors that will not understand this problem, and frankly i don't have an explanation except to say that the Flex capacitor went out...
I've uploaded logs from XDK all day yesterday and this morning, i have one post from yesterday and now this one with zero response. Someone give me an idea of whats going on please.
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Brad,
We have a workaround until we have a fix for emulator crash. The crash happens when you are trying to change the location of the current page during ajax callback and emulator is not able to resolve the relative address. Please use the following code wherever you are trying to change the location.
var newLocation = 'index.html#viewjobs_online'; // or any other new location if ( window.tinyHippos ) { // special case for emulator newLocation = getWebRoot() + newLocation; } document.location.href=newLocation; function getWebRoot() { "use strict" ; var path = window.location.href ; path = path.substring( 0, path.lastIndexOf('/') ) ; path += '/'; return path; }
Thanks,
Swati
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Brad,
Sorry to hear that your project is breaking with new version of XDK. I'm looking into the problem. If you don't mind please send your project so I can debug.
Thanks,
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i sent you a private message with the app attached, thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried the app you sent me. Your app works fine with test tab, there seems to be an issue with emulator while getting data from the your server, I'm trying to narrow it down. Meanwhile, please use test tab to test your app and debug tab if you want to debug. Build should work also.
Thanks,
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Brad,
I tested your app extensively and the problem lies in the location url referenced via emulator. This is an emulator only bug. We are trying to get a fix for that. The app works fine with Test tab using App Preview on device as well as when you build and run on the device. For now you can avoid using emulator.
In your other post https://software.intel.com/en-us/forums/topic/541973 you mentioned that the app does not work on device. I believe it is a different app you are talking about there or please check with the version that you sent me. I checked on both iOS and android and the project you sent works just fine.
Thanks,
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Swati,
Thanks for looking further into this. The version i sent you does work in teh TEST tab for me right now, and the build finally worked as well. I reloaded teh ZIP i gave you a few hours ago and was able to get good results. The emulator though is in crash mode and i cannot test anything in it at the moment.
The ZIP i gave you i had already tried reseting all the plugins and i think that is what made the test and build version fail for me for so long. So when i reloaded it and XDK it seems to be working. Not have the emulator tab can really slow down some development though, so i hope a solution is found soon.
Thanks so much for your help, please let me know what fixes are made with the emulator or if i can help in any way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Brad,
We have a workaround until we have a fix for emulator crash. The crash happens when you are trying to change the location of the current page during ajax callback and emulator is not able to resolve the relative address. Please use the following code wherever you are trying to change the location.
var newLocation = 'index.html#viewjobs_online'; // or any other new location if ( window.tinyHippos ) { // special case for emulator newLocation = getWebRoot() + newLocation; } document.location.href=newLocation; function getWebRoot() { "use strict" ; var path = window.location.href ; path = path.substring( 0, path.lastIndexOf('/') ) ; path += '/'; return path; }
Thanks,
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, i will use this until i get further detail from you.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page