Package 

Enum StaleCallBehavior

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum StaleCallBehavior
    extends Enum<StaleCallBehavior>
                        

    What the SDK does with an incoming-call push that arrives too late to be worth ringing — older than ai.daakia.callkit.DaakiaCallKitConfig.staleCallWindow.

    This happens whenever a device is offline while a call is placed: FCM queues the push and delivers it on reconnect, which can be minutes or hours later. Without a guard the phone rings for a call nobody is waiting on.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      RING

      Ring anyway, however old the call is. The behaviour of releases before the stale-call guard existed.

      Only appropriate when your backend guarantees stale pushes are never delivered — for example by setting a short FCM TTL on call invites.

      MISSED_NOTIFICATION

      Post a dismissible "missed call" notification instead of ringing. No sound, no full-screen intent; tapping it opens your app.

      The default, because a user who was offline still wants to know somebody called.

      IGNORE

      Drop the push silently. Nothing rings, nothing is posted, and the user never learns about the call.

      Choose this only when your app surfaces missed calls some other way — otherwise it reads to users as the SDK losing calls.

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait