leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

Redirect not working in Android default browser (Android 2.3) #19

Closed mliu7 closed 12 years ago

mliu7 commented 12 years ago

When the app is supposed to redirect the user to the authenticate page, a blank page is shown instead on my Android mobile browser. Pages where the app is supposed to redirect are the team edit page and the game track page.

I'll look into this.

mliu7 commented 12 years ago

Still not solved. I'm stumped. It's annoying that this is only failing on android and I have no idea how to debug it. It's probably not the redirect that is causing this, but some other javascript bug that is causing our code to not run...

cboulay commented 12 years ago

You could try creating a very simple module with nothing but a router that matches a url fragment like "redirecttest" which calls a function that does nothing but the redirect. Only require backbone, nothing else. Then, require more modules to see if those break it.

mliu7 commented 12 years ago

Yeah, that sounds like a good plan.

mliu7 commented 12 years ago

I downloaded the android emulator to try and debug the issue, but the redirects work fine on the emulator (Android 2.3.3). Looks like it's something specific to my phone. Maybe a bad token is stored in local storage.

mliu7 commented 12 years ago

The redirect to login seems to work correctly on my phone now. I can log in and access the edit and add team pages successfully. I can also navigate to the game tracking screen successfully.

However, the game tracking screen shows up as a blank page so there is something else going on here. I will close this issue because this blank game tracking screen is likely a separate issue.