Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Automatic pairing with my own app

    Developers
    2
    4
    2017
    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.
    • luis.reja
      luis.reja last edited by

      Hello there,

      I have an app which uses flic button to make some actions. I can achieve pair my flic button and can use normally in my app triggering this actions.

      But when I close my app and launches again I have to make again the pairing of the button.

      Is there a way to automatically pair flic button when available?

      Thanks in advance

      Luis

      1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @luis.reja last edited by

        @luis-reja Could you post the code you are using?
        Basically, you should just be able to use the method on FlicManager that gets all known buttons (i.e. grabbed buttons) and then set an event listener.

        1 Reply Last reply Reply Quote 0
        • luis.reja
          luis.reja last edited by

          Hi Emil,

          We are using both, Android and IOs.

          I dont want to launch my app via flic tap. What I want is when the app is open and in foreground grab the flic by itself and start to catch the events.

          I can hear the sound when i click on flic (device and flic are paired), but my app does not catch this event until I go to the flic grabber.

          There is a way to achieve this?

          Thank you

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

            Hi. What platform are you using?
            If you follow the tutorial you should not need to re-pair.
            Actually if you have registered your button for click events your app should be automatically started again, delivering the event.

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