Skip to content

Commit

Permalink
refactor: refactor PortalClient.registerDevice method
Browse files Browse the repository at this point in the history
  • Loading branch information
yurizhuk committed Mar 12, 2024
1 parent 974dd15 commit 647cdb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mobile-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ afterEvaluate {

groupId = "com.webitel"
artifactId = "mobile-sdk"
version = "0.5.5"
version = "0.5.6"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ internal class WebitelPortalClient(
}


override fun registerFCMToken(token: String, callback: CallbackListener<RegisterResult>) {
authRepository.registerFcm(token, callback)
override fun registerDevice(pushToken: String, callback: CallbackListener<RegisterResult>) {
authRepository.registerFcm(pushToken, callback)
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ interface PortalClient {
fun setAccessToken(token: String, callback: CallbackListener<Session>)

/**
* For FCM, the encryption key used to encrypt push messages. Set empty if you want to unsubscribe.
* Register device PUSH subscription
* */
fun registerFCMToken(token: String, callback: CallbackListener<RegisterResult>)
fun registerDevice(pushToken: String, callback: CallbackListener<RegisterResult>)

fun handleFCMNotification(data: Map<String, String>)

Expand Down

0 comments on commit 647cdb2

Please sign in to comment.