File tree Expand file tree Collapse file tree
android/app/src/main/java/com/httpsms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class MainActivity : AppCompatActivity() {
5050 super .onResume()
5151 Timber .d( " on activity resume" )
5252 redirectToLogin()
53+ refreshToken(this )
5354 }
5455
5556 private fun refreshToken (context : Context ) {
@@ -68,10 +69,8 @@ class MainActivity : AppCompatActivity() {
6869 return
6970 }
7071
71- Timber .i(" FCM TOKEN: ${Settings .getFcmToken(context)} " )
72-
7372 val updateTimestamp = Settings .getFcmTokenLastUpdateTimestamp(context)
74- Timber .e (" FCM_TOKEN_UPDATE_TIMESTAMP: $updateTimestamp " )
73+ Timber .d (" FCM_TOKEN_UPDATE_TIMESTAMP: $updateTimestamp " )
7574
7675 val interval = 24 * 60 * 60 * 1000 // 1 day
7776 val currentTimeStamp = System .currentTimeMillis()
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ object Settings {
123123 .getDefaultSharedPreferences(context)
124124 .getString(this .SETTINGS_FCM_TOKEN ,null )
125125
126- Timber .d(" API_KEY : [$activeStatus ]" )
126+ Timber .d(" FCM_TOKEN : [$activeStatus ]" )
127127 return activeStatus
128128 }
129129
You can’t perform that action at this time.
0 commit comments