Skip to content

Commit 90d51b7

Browse files
committed
Avoid to wakeup appllication twice
1 parent 0bdd1e7 commit 90d51b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ private void startForegroundService() {
252252
}
253253

254254
private void wakeUpApplication(String uuid, String number, String displayName) {
255+
Log.d(TAG, "wakeUpApplication, uuid:" + uuid + ", number :" + number + ", displayName:" + displayName);
256+
257+
// Avoid to call wake up the app again in wakeUpAfterReachabilityTimeout.
258+
this.currentConnectionRequest = null;
259+
255260
Intent headlessIntent = new Intent(
256261
this.getApplicationContext(),
257262
RNCallKeepBackgroundMessagingService.class

0 commit comments

Comments
 (0)