Closed LeandroVanolli closed 3 years ago
Solved!
Api 27 or higher, Android defaults the use of Cleartext to false. As this lib uses cleartext on http requests, we need to place this line on manifest, on application stack:
android:usesCleartextTraffic="true"
Source: https://developer.android.com/guide/topics/manifest/application-element#usesCleartextTraffic
Hello folks! I'm developping an App to stream IP cameras. I'm using the 1.1.8 version of the onvif library (but I also tried the 1.1.6).
When it runs on my Zenfone5 with Android 5 (API 21), I receive the "RESULT: true" followed by the device's profiles. Until here, everything looks fine. When I run it on Android 10 and Android 9, I just receive the "RESULT: false". No messages are returned, by the way. If someone could help, I'll be glad!
Here's my log: