ebryn / twitter-titanium

The easiest way to handle Twitter authentication in your Titanium Mobile app
75 stars 54 forks source link

Infinite "Loading..." after authorizing app #6

Open rigglemania opened 12 years ago

rigglemania commented 12 years ago

I am on Android 2.3 using the latest Titanium Mobile SDK (1.8.0.1)

Right now, I am trying just to get the sample application working. I did add my consumer keys so that is not the problem. When the app loads, it loads the webview where I can enter my username and password. However, when I press "authorize app", I just get the loading activity indicator that never goes away.

I did do some debugging as suggested in Issue #1 by adding the line alert(event.url) in the webview 'load' event listener. I'm not sure exactly sure what the proper behavior is, but this event does fire before I enter in my username and password. However, once I press authorize app, this event does not fire, which may be the problem.

Thanks for your help.

oborseth commented 12 years ago

I am having the exact same issue using the same Android / Titanium SDKs.

andrewMuntyan commented 12 years ago

I am having the exact same issue using the Android 2.1/ Titanium SDKs 1.8.0.1.

andrewMuntyan commented 12 years ago

Anyone solved this problem?

andrewMuntyan commented 12 years ago

I found the solution.

This applies only to an android.

The reason - the opening of the authorization window with parameter {modal: true} ( webViewWindow.open({modal: true}); //twittwr.js, line 85 ).

Remove this parametr and the login window will send request normally.