Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4883

Android: CreateLoginButton for Facebook opens blank window (fix included)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 1.7.2
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Android 2.2 and 2.3.3 devices

      Description

      When using CreateLoginButton of the facebook module some device running Android 2.2 and 2.3.3 have the login window stay blank.

      This is a known Android problem that has fixes not included in the Ti module.

      problem: https://github.com/facebook/facebook-android-sdk/issues/5

      http://www.google.com/#sclient=psy&hl=en&source=hp&q=andorid+facebook+login+blank&pbx=1&oq=andorid+facebook+login+blank&aq=f&aqi=&aql=&gs_sm=e&gs_upl=2085l2777l1l3088l5l4l0l0l0l0l287l985l0.1.3l4l0&bav=on.2,or.r_gc.r_pw.r_cp.&fp=e88d11602cf2fea7&biw=1429&bih=885

      Solution:

      http://myunixworld.blogspot.com/2010/11/android-facebook-sdk-issue-fix-for.html

      Add following code to FbWebViewClient class in FbDialog.java file.

      @Override
      public void onReceivedSslError(WebView view, SslErrorHandler handler,
      SslError error) {
       
      handler.proceed();
      }
      

      That mean your code would look like:

      private class FbWebViewClient extends WebViewClient {
      @Override
      public void onReceivedSslError(WebView view, SslErrorHandler handler,
      SslError error) {
       
      handler.proceed();
      }
      

      Ticket and Fix provided by Moshe Marciano

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              aleard Alan Leard
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-4148
                  Sync status:
                  ERROR
                  Last sent:

                  Git Integration