Truy cập vào bảng điều khiển

  • FirebaseArrayIndexError

Composite type which includes both a FirebaseError object and an index which can be used to get the errored item.

example
var registrationTokens = [token1, token2, token3];
admin.messaging().subscribeToTopic(registrationTokens, 'topic-name')
  .then(function(response) {
    if (response.failureCount > 0) {
      console.log("Following devices unsucessfully subscribed to topic:");
      response.errors.forEach(