Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    On iOS, disconnecting a button works but without messages.

    Developers
    2
    4
    919
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info 6
      info 6 last edited by

      On iOS, for some reason the flic objective-c library isn’t calling the delegate method when a button is disconnected. Anybody else had this problem?

      1 Reply Last reply Reply Quote 0
      • anton
        anton FlicTeam last edited by

        Strange. I tested it just now on iOS 13.3.1 and it works.

        Calling:

        [button disconnect];
        

        Causes:

        - (void)button:(FLICButton *)button didDisconnectWithError:(NSError *)error;
        

        And you are sure that the delegates are set properly and that you are not accidentally calling on a nil-object or something?

        1 Reply Last reply Reply Quote 0
        • info 6
          info 6 last edited by

          Flic2Lib.
          iOS: The callback on is not sent when I manually disconnect a Btn. Works fine when going out of range.
          Android: works fine on both cases.

          iOS 13.3.1 Android 5.0

          1 Reply Last reply Reply Quote 0
          • anton
            anton FlicTeam last edited by

            Can you tell me if you are using the fliclib or flic2lib? Also, does this callback not get sent when you manually call the disconnect method of the framework, or does it not get sent when the button goes out of range?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post