Package 

Class RecoverFromDroppedLoginBug

  • All Implemented Interfaces:
    com.onesignal.core.internal.startup.IStartableService

    
    public final class RecoverFromDroppedLoginBug
     implements IStartableService
                        

    Purpose: Automatically recovers a stalled User in the OperationRepo due to a bug in the SDK from 5.0.0 to 5.1.7.

    Issue: Some calls to OneSignal.login() would not be reflected on the backend and would stall the the queue for that User. This would result in User and Subscription operations to not be processed by OperationRepo. See PR #2046 for more details.

    Even if the developer called OneSignal.login() again with the same externalId it would not correct the stalled User.

    • Only calling logout() or login() with different externalId would have un-stalled the OperationRepo. And then only after logging back to the stalled user would it have recover all the unsent operations they may exist.

    • Method Summary

      Modifier and Type Method Description
      Unit start() Called when the service is to be started.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • start

         Unit start()

        Called when the service is to be started. The appId and appContext have already been established.