콘솔로 이동

Callable

  • Gets the Messaging service for the default app or a given app.

    admin.messaging() can be called with no arguments to access the default app's Messaging service or as admin.messaging(app) to access the Messaging service associated with a specific app.

    example
    // Get the Messaging service for the default app
    var defaultMessaging = admin.messaging();
    example
    // Get the Messaging service for a given app
    var otherMessaging = admin.messaging(otherApp);

    Parameters

    • Optional app: App

      Optional app whose Messaging service to return. If not provided, the default Messaging service will be returned.

    Returns Messaging

    The default Messaging service if no app is provided or the