Closed GoogleCodeExporter closed 9 years ago
This fix will be included in the next update
Original comment by edwar...@gmail.com
on 8 Apr 2011 at 9:11
API 1.6.1 includes fix
Original comment by edwar...@gmail.com
on 26 Apr 2011 at 9:53
This is still happening, same exact thing using API 1.6.1 testing on a Motorola
Xoom. White window of success.
Original comment by a...@driftlab.com
on 4 May 2011 at 11:14
Please note that this is fixed when testing using AIR on the desktop but is
still showing the white success screen on device.
Original comment by a...@driftlab.com
on 4 May 2011 at 11:29
Here is what it looks like.
Original comment by a...@driftlab.com
on 4 May 2011 at 11:38
Attachments:
Not sure if this helps but this is what I am getting when testing from the Xoom:
// handleLocationChange : webView.location =
http://touch.facebook.com/login.php?app_id=205204026176581&cancel=http://www.fac
ebook.com/connect/login_success.html?error_reason=user_denied&error=access_denie
d&error_description=The+user+denied+your+request.&fbconnect=1&next=http://www.fa
cebook.com/connect/uiserver.php?method=permissions.request&app_id=20520402617658
1&display=touch&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_suc
cess.html&type=user_agent&fbconnect=1&perms=publish_stream%2Cemail%2Cuser_likes%
2Cuser_birthday&from_login=1&rcount=1
// handleLocationChange : webView.location =
http://touch.facebook.com/login.php?app_id=205204026176581&cancel=http://www.fac
ebook.com/connect/login_success.html?error_reason=user_denied&error=access_denie
d&error_description=The+user+denied+your+request.&iphone&next=http://www.faceboo
k.com/connect/uiserver.php?method=permissions.request&app_id=205204026176581&dis
play=touch&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.
html&type=user_agent&fbconnect=1&perms=publish_stream%2Cemail%2Cuser_likes%2Cuse
r_birthday&from_login=1&refsrc=http://touch.facebook.com/login.php&e=1348029&ema
il=losrhumans@gmail.com
// handleLocationChange : webView.location =
http://www.facebook.com/connect/uiserver.php?method=permissions.request&app_id=2
05204026176581&display=touch&redirect_uri=http://www.facebook.com/connect/login_
success.html&type=user_agent&fbconnect=1&perms=publish_stream,email,user_likes,u
ser_birthday&from_login=1
And this is what I get when testing from the actual desktop emulator in Flash
builder burrito:
// handleLocationChange : webView.location =
https://graph.facebook.com/oauth/authorize?scope=publish%5Fstream%2Cemail%2Cuser
%5Flikes%2Cuser%5Fbirthday&redirect%5Furi=http%3A%2F%2Fwww%2Efacebook%2Ecom%2Fco
nnect%2Flogin%5Fsuccess%2Ehtml&client%5Fid=205204026176581&type=user%5Fagent&dis
play=touch
// handleLocationChange : webView.location =
http://www.facebook.com/connect/uiserver.php?app_id=205204026176581&method=permi
ssions.request&display=touch&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogi
n_success.html&type=user_agent&fbconnect=1&perms=publish_stream%2Cemail%2Cuser_l
ikes%2Cuser_birthday
// handleLocationChange : webView.location =
http://www.facebook.com/connect/login_success.html#access_token=205204026176581%
7C2.2BXlE07sLXWNB5A4NcXUyQ__.3600.1304607600.3-100000189486687%7ClIU4AQl-dSSjFbO
74Ygxtbl45_M&expires_in=3607
Original comment by a...@driftlab.com
on 5 May 2011 at 2:07
Ok this is what I've done, total hack but at least gets me by for the time
being, I've modified MobileLoginWindow.showWindow to this:
protected function showWindow (req : URLRequest) : void
{
webView.addEventListener (Event.LOCATION_CHANGE, handleLocationChange, false, 0, true);
var timer : Timer = new Timer (2000);
timer.addEventListener (
TimerEvent.TIMER,
function (event : TimerEvent) : void
{
try
{
var title : String = webView.title;
if (title == "Success")
{
handleLocationChange ();
trace ("timer stopped");
timer.stop ();
timer = null;
}
}
catch (e : Error)
{
trace ("timer stopped");
timer.stop ();
timer = null;
}
});
timer.start ();
webView.loadURL (req.url);
}
Basically sets a timer to spin and check the page title, when it says "Success"
it kills the timer and manually calls the handleLocationChange method. (please
note you will have to set the param event : Event to event : Event = null
within that method else it will throw an error.
Original comment by a...@driftlab.com
on 5 May 2011 at 2:23
For me, this was only an issue on the XOOM running Honeycomb. It worked fine on
Froyo and Gingerbread. I was able to fix it locally for all three using a
different event to trigger the handler.
Based on event order for redirects here:
http://kb2.adobe.com/cps/895/cpsid_89526.html#main_When_dealing_with_server_side
_redirection__a_different_sequence_of_events_is_fired_on_iOS_Android_desktop
I changed the event in my local copy from Event.LOCATION_CHANGE to
Event.COMPLETE. Now it seems to work great on all three Android flavors and in
the AIR emulator.
Original comment by chris.ca...@gmail.com
on 29 Jul 2011 at 9:07
Original issue reported on code.google.com by
tyler.bu...@gmail.com
on 7 Apr 2011 at 3:54Attachments: