code: protected static boolean fetchAnonymousAccessTokenIfNeeded(final String userId, final ResponseHandler onFetchedHandler) {
          if (!WonderPush.isInitialized()) {
              // Note: Could use WonderPush.safeDefer() here but as we require consent to proceed,
              // let's use WonderPush.safeDeferWithConsent() to additionally passively wait for SDK initialization.
              WonderPush.safeDeferWithConsent(new Runnable() {
                  @Override
                  public void run() {
                      if (!fetchAnonymousAccessTokenIfNeeded(userId, onFetchedHandler)) {
                          // Call the handler anyway
                          onFetchedHandler.onSuccess(null);
                      }
                  }
              }, null);
              return true; // true: the handler will be called
          }
  
          if (null == WonderPushConfiguration.getAccessToken()) {
              fetchAnonymousAccessToken(userId, onFetchedHandler);
              return true;
          }
          return false;
      }
docs: If no access token is found in the user's preferences, fetch an anonymous access token.
  
  @param onFetchedHandler
  A handler called if a request to fetch an access token has been
  executed successfully, never called if retrieved from cache
  @return Whether or not a request has been executed to fetch an anonymous
  access token (true fetching, false retrieved from local cache)