clariusdev / mobileapi

Android API Allowing IPC with the Clarius App
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

License not found #4

Closed davidmatos closed 3 years ago

davidmatos commented 3 years ago

Observed behaviour

Sometimes I get a "license not found" error. I couldn't reproduce this bug, so I don't know what's causing it. When this happens I have to quit everything and restart Clairus App before I start my app.

Steps to reproduce

I know that one of the reasons that causes this issue is when the probe enters "sleep mode". But it also happens in other occasions.

Expected behaviour

The license verification should not fail arbitrarily

julien-l commented 3 years ago

The Mobile API license is linked to individual scanners, as opposed to user accounts, and is active only when a scanner is currently connected to the app. When your scanner goes to sleep, it disconnects and the license is removed. This is the expected behaviour as described in the README's licensing section https://github.com/clariusdev/mobileapi#licensing.

The license is automatically re-activated as soon at the scanner re-connects and a notification message is sent to the Mobile API.