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

iOS10: Button listener takes two taps before responding for Facebook login

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.5.0
    • Fix Version/s: Release 5.5.1, facebook 5.2.7
    • Component/s: iOS
    • Labels:
    • Environment:

      NPM Version: 2.15.1
      Node Version: 4.4.3
      Mac OS: 10.11.2
      Appc CLI: 5.5.0
      Appc CLI NPM: 4.2.7
      Titanium SDK version: 5.5.0.GA
      Appcelerator Studio, build: 4.7.1.201609100950
      Xcode 8.0 GM

    • Sprint:
      2016 Sprint 19 SDK

      Description

      Description:

      While testing a fix for TIMOB-23890, I noticed that the button for login required two presses before I was presented with the Facebook login. Sample code is here:

      var fb = require("facebook");
       
      // Facebook Stuff
      fb.initialize();
       
       
      var win = Ti.UI.createWindow();
       
      var fbloginbutton = Ti.UI.createButton({
          title: "Login with Facebook"
      });
       
      fbloginbutton.addEventListener("click", function() {
          fb.authorize();
      });
       
      win.add(fbloginbutton);
       
      var lbl = Ti.UI.createLabel({
          color: "red",
          text: fb.loggedIn
      });
       
      win.open();
      

      Steps to reproduce:

      1) Create a new classic mobile project
      2) Attach the Facebook module
      3) Paste the sample code into app.js
      4) Install and launch
      5) Press the "Login with Facebook" button

      Result:

      Nothing happens - Until you press the button again.

      Expected Result:

      The Facebook login process begins

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                emerriman Eric Merriman
                Reviewer:
                Chee Kiat Ng (Inactive)
                Tester:
                Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration