No Description

FIRInstanceIDConstants.m 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2019 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 "FIRInstanceIDConstants.h"
  17. // Commands
  18. NSString *const kFIRInstanceID_CMD_RST = @"RST";
  19. // NOTIFICATIONS
  20. NSString *const kFIRInstanceIDCheckinFetchedNotification = @"com.google.gcm.notif-checkin-fetched";
  21. NSString *const kFIRInstanceIDAPNSTokenNotification = @"com.firebase.iid.notif.apns-token";
  22. NSString *const kFIRInstanceIDDefaultGCMTokenNotification = @"com.firebase.iid.notif.fcm-token";
  23. NSString *const kFIRInstanceIDDefaultGCMTokenFailNotification =
  24. @"com.firebase.iid.notif.fcm-token-fail";
  25. NSString *const kFIRInstanceIDIdentityInvalidatedNotification = @"com.google.iid.identity-invalid";
  26. // Miscellaneous
  27. NSString *const kFIRInstanceIDAllScopeIdentifier = @"iid-all";
  28. NSString *const kFIRInstanceIDDefaultTokenScope = @"*";
  29. NSString *const kFIRInstanceIDSubDirectoryName = @"Google/FirebaseInstanceID";
  30. // Registration Options
  31. NSString *const kFIRInstanceIDTokenOptionsAPNSKey = @"apns_token";
  32. NSString *const kFIRInstanceIDTokenOptionsAPNSIsSandboxKey = @"apns_sandbox";
  33. NSString *const kFIRInstanceIDTokenOptionsFirebaseAppIDKey = @"gmp_app_id";
  34. NSString *const kFIRInstanceIDAppDelegateProxyEnabledInfoPlistKey =
  35. @"FirebaseAppDelegateProxyEnabled";
  36. // iOS Keychain error https://forums.developer.apple.com/thread/4743
  37. // An undocumented error code hence need to be redeclared.
  38. const int kFIRInstanceIDSecMissingEntitlementErrorCode = -34018;