Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Button id different in Android and iOS

    Developers
    4
    4
    2446
    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.
    • jaime.fernandez
      jaime.fernandez last edited by

      The button id returns as a MAC address in Android and as an UUID in iOS. Why is that?
      I'm developing an app for both mobile operative systems. Is it possible to retrieve a button in iOS using its MAC address and viceversa (retrieve the same button in Android using it UUID)?

      1 Reply Last reply Reply Quote 0
      • narayanarao35
        narayanarao35 last edited by

        Hi anton

        We have checked documentation of FlicButton for iOS and Android from below reference
        Android :: https://partners.flic.io/partners/developers/documentation/android/index.html
        iOS :: https://partners.flic.io/partners/developers/documentation/ios/Classes/SCLFlicButton.html
        But we didn't get UUID parameter from Android where as we are getting in iOS

        We are getting Mac Address in android that is not same as UUID

        So can you please tell how we can get common value for iOS and Android

        Thank You in advance.

        1 Reply Last reply Reply Quote 0
        • kiss.electronics.20
          kiss.electronics.20 last edited by

          Hi Anton,

          Here I got two documentation resources from Flic.
          Android Documentation: https://partners.flic.io/partners/developers/documentation/android/index.html
          IOS Documentation : https://partners.flic.io/partners/developers/documentation/ios/Classes/SCLFlicButton.html

          I have debug the FlickButton on both Android and iOS, and found that UUID parameter is not available in android SDK.
          And UUID paramter is not mentioned in the Android documentation also.

          So, Whare I can find the common identifier for Flic Button to identify in my Application.

          Thank in advance !!!
          Happy coding...

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

            @jaime-fernandez The UUID parameter on Android is the same as the buttonPublicKey parameter on iOS. You can use that to identify buttons across different platforms. Although remember that you can not have the button connected to two different phones at the same time regardless, so I am not sure why you would want to do this.

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