Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users
    1. Home
    2. niklas.landin
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    niklas.landin

    @niklas.landin

    0
    Reputation
    190
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    niklas.landin Unfollow Follow

    Latest posts made by niklas.landin

    • problems HTTP Requests using button w phone and button w hub

      Hi

      I have successfully been sending http post requests using the flic hub.
      However, now when I’m making the same request using the button and the iOS client I get the message: Internet Request: Request failed: not found (404).

      I have made sure that the information in both requests is the same. The only difference I can notice is the ”Validate Certificates” switch in the hub, which not is present in the iOS client.

      Can anybody tell me what is the difference in behaviour between the iOS Client and the hub?

      Thanks!

      posted in Developers
      niklas.landin
      niklas.landin
    • RE: iOS Swift Question: No callback happens when grabbing button

      Yes, that fixed the problem.

      Thank you!

      //Niklas

      posted in Developers
      niklas.landin
      niklas.landin
    • iOS Swift Question: No callback happens when grabbing button

      I got the ios-boiler-plate application to work, but now it doesn't anymore.

      I use:
      @IBAction func grabButton() {
      print("Grabbing a flic..")
      SCLFlicManager.shared()?.grabFlicFromFlicApp(withCallbackUrlScheme: "wios-boilerplate-swift")
      }

      to call the flic app, which opens up correctly.
      But after selecting the button the flic app doesn't correctly call back to the boiler plate app anymore.
      Thus
      func flicManager(_ manager: SCLFlicManager, didGrab button: SCLFlicButton?, withError error: Error?) {
      print("I grabbed the button")
      if (error != nil) {
      print("Error: (error!._domain) - (error!._code)")
      return
      }
      // TODO: Here would be a good place to set the Flic latency in case you need lower latency
      // Consider choosing your prefered triggerBehavior as well (Click / hold is default)
      }

      is not called anymore.

      I have no clue of how to track down this error. But I suppose I'm not the first one experiencing this error.

      If anyone has a clue I would greatly appreciate it.

      Thanks,

      //Niklas

      posted in Developers
      niklas.landin
      niklas.landin