Homesso integration#1
Conversation
| val bundle = intent.extras | ||
| if (bundle != null) { |
There was a problem hiding this comment.
You can directly use
intent.extras?.let {
var launchLogin = bundle.getBoolean(VizbeeHomeSSOAdapter.INTENT_LAUNCH_LOGIN_SCREEN)
if (launchLogin) {
Logger.d(LOG_TAG, "LoginFragment Launch Called")
showUserLoginFragment()
}
}
| data class LoginRequest( | ||
| val email: String, | ||
| val pwd: String, | ||
| val deviceId: String |
There was a problem hiding this comment.
you can use default value for the deviceId since its constant through out
|
|
||
| companion object { | ||
| private const val LOG_TAG = "VizbeeHomeSSOAdapter" | ||
| var INTENT_LAUNCH_LOGIN_SCREEN: String = "INTENT_LAUNCH_LOGIN_SCREEN" |
| // --------------------------- | ||
| // [BEGIN] Vizbee Integration | ||
| // --------------------------- | ||
| VizbeeHomeSSOAdapter().updateRegCodeStatus(body.authToken) |
There was a problem hiding this comment.
are we asking them to update reg code status every time they login without checking whether it’s been requested by TV (via HomeSSO adapter)?
There was a problem hiding this comment.
Ideally we need to send arg from HomeSSO Adapter.
Right now, every time MainActivity is launched and there’s an intent, we are launching LoginFragment. This isn’t a correct approach.
radhakrishna-vizbee
left a comment
There was a problem hiding this comment.
have given some comments, please check
541bc5a to
4b730f1
Compare
HomeSSO code added for demo app.