FIRMessagingConstants.m 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "FirebaseMessaging/Sources/FIRMessagingConstants.h"
  17. NSString *const kFIRMessagingRawDataKey = @"rawData";
  18. NSString *const kFIRMessagingCollapseKey = @"collapse_key";
  19. NSString *const kFIRMessagingFromKey = @"from";
  20. NSString *const kFIRMessagingSendTo = @"google."
  21. @"to";
  22. NSString *const kFIRMessagingSendTTL = @"google."
  23. @"ttl";
  24. NSString *const kFIRMessagingSendDelay = @"google."
  25. @"delay";
  26. NSString *const kFIRMessagingSendMessageID = @"google."
  27. @"msg_id";
  28. NSString *const KFIRMessagingSendMessageAppData = @"google."
  29. @"data";
  30. NSString *const kFIRMessagingMessageInternalReservedKeyword = @"gcm.";
  31. NSString *const kFIRMessagingMessagePersistentIDKey = @"persistent_id";
  32. NSString *const kFIRMessagingMessageIDKey = @"gcm."
  33. @"message_id";
  34. NSString *const kFIRMessagingMessageAPNSContentAvailableKey = @"content-available";
  35. NSString *const kFIRMessagingMessageSyncViaMCSKey = @"gcm."
  36. @"duplex";
  37. NSString *const kFIRMessagingMessageSyncMessageTTLKey = @"gcm."
  38. @"ttl";
  39. NSString *const kFIRMessagingMessageLinkKey = @"gcm."
  40. @"app_link";
  41. NSString *const kFIRMessagingRemoteNotificationsProxyEnabledInfoPlistKey =
  42. @"FirebaseAppDelegateProxyEnabled";
  43. NSString *const kFIRMessagingSubDirectoryName = @"Google/FirebaseMessaging";
  44. // Notifications
  45. NSString *const kFIRMessagingCheckinFetchedNotification = @"com.google.gcm.notif-checkin-fetched";
  46. NSString *const kFIRMessagingAPNSTokenNotification = @"com.firebase.iid.notif.apns-token";
  47. NSString *const kFIRMessagingRegistrationTokenRefreshNotification =
  48. @"com.firebase.iid.notif.refresh-token";
  49. const int kFIRMessagingSendTtlDefault = 24 * 60 * 60; // 24 hours