• Popular
  • Users
  • Login
Flic Home

Community

  • Login
  • Search
  • Popular
  • Users

Android: cannot receive any events

Developers
2
2
1.4k
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.
  • ernst
    ernst last edited by 16 Jul 2017, 09:46

    I just started developing a custom Android app which should receive UP_OR_DOWN events. I already registered my app in the developer portal to get access to app id and secret.

    I set up the SDK according to the Android example on GitHub.

    Grabbing the button seems to work, my app is then listed as a shared app for the button in the FLIC app button overview.

    BTW do I need to confirm this sharing there? I can only see a "RELEASE" button, which seems to delete the sharing link again.

    Anyway no events seem to be delivered to my app. I registered a Broadcast receiver, extended FlicBroadcastReceiver, and have overriden onRequestAppCredentials() and onButtonUpOrDown(), just like in the docs.

    But no events are received.

    I also tried your example app on Github, same result: no events received.

    What could be wrong?

    1 Reply Last reply Reply Quote 0
    • Emil
      Emil FlicTeam last edited by 14 Aug 2017, 16:32

      Hi. I assume you called the "registerListenForBroadcast" method?
      Is logcat showing any errors?

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post