LogmeinRescue / Android-SDK

Rescue In-App Support Android SDK
http://secure.logmeinrescue.com/welcome/webhelp/EN/SDKa/MobileSDK/c_rasdk_overview.html
Other
5 stars 6 forks source link

Camera Share, Customer has sent app to background. #46

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

I'm having an issue with the camera sharing, no matter what I do with the CameraStreamView, it will tell me customer has sent app to background on the technician console.

I can see the blurred camera view on the device when the session is connecting and then a clear view when the session has connected, but I cannot see the camera view in the console due to the customer has sent app to background issue. So it seems the connection is working but not detecting that the camera view is the front most view on the screen.

I have tried this:

camera_stream_view.visibility = View.VISIBLE cameraExtension.startRendering(camera_stream_view) camera_stream_view.bringToFront()

and this:

camera_stream_view.visibility = View.VISIBLE camera_stream_view.bringToFront() cameraExtension.startRendering(camera_stream_view)

but it always shows that error. Any ideas?

tbalogh commented 3 years ago

Hi Chris,

Could you verify, that RescueSDK.initializeLifecycleReporter(this); was called in the application's onCreate method, as described here?

Best, Tamas

ghost commented 3 years ago

We have called RescueSDK.initializeLifecycleReporter(application) (Kotlin), could the issue be that it extends AppCompatActivity instead of application?

tbalogh commented 3 years ago

This could be the issue. You must call RescueSDK.initializeLifecycleReporter(application) in your application's onCreate method in order to enable the RescueSDK to track the app background/foreground state correctly.

tbalogh commented 3 years ago

Let us know, if calling RescueSDK.initializeLifecycleReporter(application) in your application's onCreate resolves the issue or if you have any further question.

ghost commented 3 years ago

I am just awaiting a technician to assist me with testing. Will update ASAP.

ghost commented 3 years ago

I am happy to say that it is now working, thank you for the response!