kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Cannot login on Xoom, webview never dismisses (works fine on my nexus one) #302

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Must be on a Motorola Xoom
1. Setup a basic login function: 
FacebookMobile.login(loginHandler,stage,permsArray,swv);
2. Execute login function, sign in appears, enter credentials, press login
3. the web view goes white, and has the word "success" in top left corner, and 
webview never dismisses. if you go back into the app and press connect it 
doesnt promt for a relogin it just uses the old name and the you get a white 
web view with the word success in the top left corner.

What is the expected output? What do you see instead?
It should just log you in, and the web view should dismiss

What version of the product are you using? On what operating system?
Motorola Xoom, Android 3.0

Please provide any additional information below.
The same exact code works fine on my nexus one.

Original issue reported on code.google.com by Bry...@gmail.com on 13 May 2011 at 7:44

GoogleCodeExporter commented 9 years ago
This was happening for me as well, I altered the code a touch as a hacky temp 
fix.  Please look at my solution in the thread here: 
http://code.google.com/p/facebook-actionscript-api/issues/detail?id=290#c8

Original comment by a...@driftlab.com on 17 May 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Marking as "WontFix" for now - we shouldn't add a hack to the API for one 
device. May reopen if this becomes an issue with Honeycomb (Android 3.0) and/or 
other devices.

Original comment by rovertn...@gmail.com on 25 May 2011 at 3:23

GoogleCodeExporter commented 9 years ago
The Xoom is the primary stock/vanilla Honeycomb development device for 
developers...If it doesn't work on the Xoom...it's a honeycomb bug. This should 
be re-opened and fixed because the issue is "White window of success wont go 
away on Honeycomb devices" I shouldn't have said xoom in the title.

Original comment by Bry...@gmail.com on 26 May 2011 at 1:33

GoogleCodeExporter commented 9 years ago
I have the same issue, but on an Asus Eee Pad Transformer using Honeycomb 3.1.
So it is not only a Xoom specific issue.

Original comment by bjarnehe...@gmail.com on 13 Jul 2011 at 6:14

GoogleCodeExporter commented 9 years ago
Go to the MobileLoginWindow class and put a break point on line 135 approx (the 
line where the if statement starts) and tell us what the location var is equal 
to (you could just trace it out too).

Original comment by rovertn...@gmail.com on 14 Jul 2011 at 10:55

GoogleCodeExporter commented 9 years ago
In my case the location var is equal to: 
https://www.facebook.com/connect/uiserver.php? 
app_id=xxx&method=permissions.request&display=touch&next=http://www.facebook.com
/connect/login_success.html&type=user_agent&fbconnect=1&perms=read_stream,user_s
tatus,read_friendlists

Note: Replaced my app ID with xxx above.

Original comment by bjarnehe...@gmail.com on 14 Jul 2011 at 11:07

GoogleCodeExporter commented 9 years ago
bjarnehe...@gmail.com, as I said in Issue 322, that url looks correct.

Bry...@gmail.com, is your login callback being called? This could be an issue 
with the webView.dispose method not working properly if so.

Original comment by rovertn...@gmail.com on 22 Jul 2011 at 8:13

GoogleCodeExporter commented 9 years ago
can you try adding this piece of code to approx line 110 of MobileLoginWindow 
(after the first event listener) and see if this works:

webView.addEventListener(
    Event.COMPLETE,
    handleLocationChange,
    false, 0, true
);

Original comment by rovertn...@gmail.com on 22 Jul 2011 at 8:42