Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App keeps trying to register even though it gets unregistered with a response of SDLAppInterfaceUnregisteredReasonAppUnauthorized #1084

Closed
MichaelCrimando opened this issue Sep 27, 2018 · 5 comments
Labels
bug A defect in the library Waiting for Feedback Maintainers are waiting for feedback from an author or contributor

Comments

@MichaelCrimando
Copy link

Bug Report

Reproduction Steps
  1. Connect iphone to a Ford 4" SYNC3 system via USB
  2. Launch the test navigation app on the phone.
  3. Observe the app traces
Expected Behavior

App registers once, the system unregisters it with reason When app gets unregistered with a response of SDLAppInterfaceUnregisteredReasonAppUnauthorized, the App doesn't try to register again until next ignition cycle.

Observed Behavior

App registers once, the system unregisters it with reason When app gets unregistered with a response of SDLAppInterfaceUnregisteredReasonAppUnauthorized, and the app keeps trying to register over and over again. (About once every 5 seconds)

OS & Version Information
  • iOS Version: 11.4.1
  • SDL iOS 6.0.1
  • Testing Against: Using our Ford Mobile Navigation test app (Antelope v4) On Ford SYNC3 4", Mobile Navigation is not supported. So the system is trying to unregister the apps with reason SDLAppInterfaceUnregisteredReasonAppUnauthorized, but the app keeps trying infinitely over and over again
Test Case, Sample Code, and / or Example App

6.0.1 has a tiny bit of extra code on top of this, but we're trying to utilize this fix:
https://github.com/smartdevicelink/sdl_ios/pull/978/files

The system successfully goes into this call, but the behavior is not correct
[self.lifecycleStateMachine transitionToState:SDLLifecycleStateStopped];

@MichaelCrimando
Copy link
Author

Heres the log from our app
AntelopeLog_20180927_101920.zip

@joeljfischer
Copy link
Contributor

In what way is that behavior not correct? It should not be attempting to reconnect if it transitions to the stopped state, right?

@joeljfischer joeljfischer added bug A defect in the library Waiting for Feedback Maintainers are waiting for feedback from an author or contributor labels Oct 3, 2018
@MichaelCrimando
Copy link
Author

Yea, I expect the app to stop registering when it goes to the stopped state. The problem is that it gets sent to the stopped state but then tries to re-register over and over again.

We actually ended up doing a work around in SYNC where SYNC just tells the app that it registered, but doesn't show it on the display

@NicoleYarroch
Copy link
Contributor

See related issue #1097

@NicoleYarroch
Copy link
Contributor

Fixed in PR #1232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library Waiting for Feedback Maintainers are waiting for feedback from an author or contributor
Projects
None yet
Development

No branches or pull requests

3 participants