Marcos Alves Well-Known Member Licensed User Longtime User Mar 12, 2019 #1 Hello, some of our users are reporting that one of our apps is generating an Android system alert as follows: Sorry, translated from portuguese: "Slax was detected using camera" (Slax is our app) The notification pops up on screen even when Slax is closed. We don't call camera, microphone or any similar resource in background. This notification only occurs on Samsung devices (I have a Motorola with Android 8 and Other with Android 9 installed without any problem). Any suggestion what could be happening?
Hello, some of our users are reporting that one of our apps is generating an Android system alert as follows: Sorry, translated from portuguese: "Slax was detected using camera" (Slax is our app) The notification pops up on screen even when Slax is closed. We don't call camera, microphone or any similar resource in background. This notification only occurs on Samsung devices (I have a Motorola with Android 8 and Other with Android 9 installed without any problem). Any suggestion what could be happening?
Erel B4X founder Staff member Licensed User Longtime User Mar 13, 2019 #2 Check the permissions (Logs - List Permissions). Is the camera permission listed? If not, open the generated AndroidManifest.xml file and look for the camera permission. Upvote 0
Check the permissions (Logs - List Permissions). Is the camera permission listed? If not, open the generated AndroidManifest.xml file and look for the camera permission.
Marcos Alves Well-Known Member Licensed User Longtime User Mar 14, 2019 #3 Erel said: Check the permissions (Logs - List Permissions). Is the camera permission listed? If not, open the generated AndroidManifest.xml file and look for the camera permission. Click to expand... Hello @Erel , YES, the app needs camera permission, but doesn't request it when in background. Doing some research I discovered that a native library that I use (ABTO SIP) that runs in background to receive SIP phone calls (which allows video and audio calls) maybe is the responsible, because the SIP registration events in our servers are almost coincident with phone alerts. BUT I'm still confused - the app obviously is not USING THE CAMERA, but this app which has permission to use the camera is starting in background a library that uses (not in background)... should this generate an alert? For me looks that it's an Android system mistake/bug (reinforcing this thesis because this only occurs in Samsung devices...). What do you think @Erel - is there any way (java command, Manifest, etc...) to avoid this alert being showed by Android in this case? Last edited: Mar 14, 2019 Upvote 0
Erel said: Check the permissions (Logs - List Permissions). Is the camera permission listed? If not, open the generated AndroidManifest.xml file and look for the camera permission. Click to expand... Hello @Erel , YES, the app needs camera permission, but doesn't request it when in background. Doing some research I discovered that a native library that I use (ABTO SIP) that runs in background to receive SIP phone calls (which allows video and audio calls) maybe is the responsible, because the SIP registration events in our servers are almost coincident with phone alerts. BUT I'm still confused - the app obviously is not USING THE CAMERA, but this app which has permission to use the camera is starting in background a library that uses (not in background)... should this generate an alert? For me looks that it's an Android system mistake/bug (reinforcing this thesis because this only occurs in Samsung devices...). What do you think @Erel - is there any way (java command, Manifest, etc...) to avoid this alert being showed by Android in this case?
Erel B4X founder Staff member Licensed User Longtime User Mar 15, 2019 #4 Maybe the library opens the camera even when it is in the background. Upvote 0