This is a migrated thread and some comments may be shown as answers.

Mobile app error on startup if previously redirect to inexistent page

1 Answer 24 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Emanuele
Top achievements
Rank 1
Emanuele asked on 16 Jul 2012, 05:41 PM
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.

1 Answer, 1 is accepted

Sort by
0
neven
Top achievements
Rank 1
answered on 18 Jul 2012, 09:00 AM
Hi,

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

 
Tags
Report a bug
Asked by
Emanuele
Top achievements
Rank 1
Answers by
neven
Top achievements
Rank 1
Share this question
or