Mobile app error on startup if previously redirect to inexistent page

2 posts, 0 answers
  1. Emanuele
    Emanuele avatar
    10 posts
    Member since:
    Jul 2012

    Posted 16 Jul 2012 Link to this post

    I made wrong redirect (from javascript) to a non existent page.

    When I reopen the app, it try to start application on last (wrong) page, then show the page not found error and then exit.

    Only unistall and reinstall app solve the problem.
  2. neven
    neven avatar
    17 posts
    Member since:
    Nov 2010

    Posted 18 Jul 2012 Link to this post


    The problem is that when you fix your redirect the actual application on the phone is still pointing to the old “wrong
    url”(and this is expected behavior). You just need to do same thing as if you are in the browser that shows you error 404.

    Assuming you fixed your index.html to redirect correctly do one of the following

    --Just close the app and restart it. To do this on android you actually need to use task manager to kill the app. Start again the application and it will load your index html and correct redirection.

    -- When on the “wrong” page press device back button. This should force app do go back to the previous page – in your case the new/fixed index.html. And now redirection should happen successfully.

    Hope this helps

    Best regards

Back to Top