0

When using web inspector on chrome/android or safari/iphone my app will launch just fine and I can inspect everything. However on certain occasions, especially on Safari, app startup console messages are not being captured by the time I am able to open the web insepctor.

So to try to see them, I do a manual refresh on the web inspector page which fully refreshes the app as if doing a fresh load. During the reload I see all the console messages being captured and displayed, BUT, my app doesn't load properly - just a blank screen with grey top and bottom status bars. No errors are thrown.

After extensive testing, I have determined that the UI-Router $state controller is not reloading properly - or at all. In the onDevice.ready() function the 2nd to last app sequence startup message fires, which tells me that so far everything has fired correctly. Then the last step redirects to $state.go("tab.home"); with the first line in homeController being another console.log("Home Page has fired") - but this last console message never fires which is telling me it doesn't know how to get to tab.home (and no errors thrown).

This makes sense because $state.tab actually holds the apps true top and bottom status/navigation bars, thus if $state router isn't reloading properly then there is no $state.go('tab.home') to actually go to.

I see the issue but don't know how to resolve it.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.