flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From derChris <christian.kie...@goal-games.de>
Subject Re: Bad click-accurateness on iOs!
Date Wed, 02 Oct 2013 15:06:40 GMT
Air 3.8 and Flex 4.10...

The problem is that in the facebook air sdk there is a constant:

public static var LOGIN_SUCCESS_URL:String
      = 'http://www.facebook.com/connect/login_success.html';

and in MobileLoginWindow of the sdk:

protected function handleLocationChange(event:Event):void
		{
			var location:String = webView.location;
			if (location.indexOf(FacebookURLDefaults.LOGIN_FAIL_URL) == 0 ||
location.indexOf(FacebookURLDefaults.LOGIN_FAIL_SECUREURL) == 0)
			{
				webView.removeEventListener(Event.COMPLETE, handleLocationChange);
				webView.removeEventListener(LocationChangeEvent.LOCATION_CHANGE,
handleLocationChange);
				loginCallback(null,
FacebookDataUtils.getURLVariables(location).error_reason);
				userClosedWindow =  false;
				webView.dispose();
				webView=null;
			}

			else if (location.indexOf(FacebookURLDefaults.LOGIN_SUCCESS_URL) == 0 ||
location.indexOf(FacebookURLDefaults.LOGIN_SUCCESS_SECUREURL) == 0)
			{
				webView.removeEventListener(Event.COMPLETE, handleLocationChange);
				webView.removeEventListener(LocationChangeEvent.LOCATION_CHANGE,
handleLocationChange);
				loginCallback(FacebookDataUtils.getURLVariables(location), null);
				
				userClosedWindow =  false;
				webView.dispose();
				webView=null;
			}
		}

As facebook is now sending
"http://m.facebook.com/connect/login_success.html"

this is not working anymore... So it has nothing to do with the Flex or Air
SDKs...

Christian



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Bad-click-accurateness-on-iOs-tp2691p2940.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message