Example apps crash if the stop
method is called when the lifecycle manager errors
#1268
Labels
best practice
Not a defect but something that should be improved anyway
bug
A defect in the library
example app
Relating to the built-in example apps
Projects
Milestone
Bug Report
If the
start:readyHandler
method errors, the app crashes because it attempts to stop the manager on the same queue, which causes deadlock.The example app should follow the library's documentation and only
stop
the manager on themain
thread. (#1213)The app errors out when:
RegisterAppInterface
fails with a result code ofDISALLOWED
, the example apps in the library (Swift and Obj-C) crash.RegisterAppInterface
fails because the session terminated.Failed to register the app. Error: Error Domain=com.sdl.lifecyclemanager.error Code=-2 "Could not find a connection"
. This happens when the USB cord is pulled after sending a RAI request but before a response is received.Reproduction Steps for error 1
RegisterAppInterface
request will fail with aresultCode
ofAPPLICATION_REGISTERED_ALREADY
Expected Behavior
The device app does not crash.
Observed Behavior
The device app crashes
OS & Version Information
The text was updated successfully, but these errors were encountered: