FIRInstanceIDConstants.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 <Foundation/Foundation.h>
  17. #pragma mark - Commands
  18. /**
  19. * Value included in a structured response or GCM message from IID, indicating
  20. * an identity reset.
  21. */
  22. FOUNDATION_EXPORT NSString *const kFIRInstanceID_CMD_RST;
  23. #pragma mark - Notifications
  24. /// Notification used to deliver GCM messages for InstanceID.
  25. FOUNDATION_EXPORT NSString *const kFIRInstanceIDCheckinFetchedNotification;
  26. FOUNDATION_EXPORT NSString *const kFIRInstanceIDAPNSTokenNotification;
  27. FOUNDATION_EXPORT NSString *const kFIRInstanceIDDefaultGCMTokenFailNotification;
  28. FOUNDATION_EXPORT NSString *const kFIRInstanceIDIdentityInvalidatedNotification;
  29. #pragma mark - Miscellaneous
  30. /// The scope used to save the IID "*" scope token. This is used for saving the
  31. /// IID auth token that we receive from the server. This feature was never
  32. /// implemented on the server side.
  33. FOUNDATION_EXPORT NSString *const kFIRInstanceIDAllScopeIdentifier;
  34. /// The scope used to save the IID "*" scope token.
  35. FOUNDATION_EXPORT NSString *const kFIRInstanceIDDefaultTokenScope;
  36. /// Subdirectory in search path directory to store InstanceID preferences.
  37. FOUNDATION_EXPORT NSString *const kFIRInstanceIDSubDirectoryName;
  38. /// The key for APNS token in options dictionary.
  39. FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenOptionsAPNSKey;
  40. /// The key for APNS token environment type in options dictionary.
  41. FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenOptionsAPNSIsSandboxKey;
  42. /// The key for GMP AppID sent in registration requests.
  43. FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenOptionsFirebaseAppIDKey;
  44. /// The key to enable auto-register by swizzling AppDelegate's methods.
  45. FOUNDATION_EXPORT NSString *const kFIRInstanceIDAppDelegateProxyEnabledInfoPlistKey;
  46. /// Error code for missing entitlements in Keychain. iOS Keychain error
  47. /// https://forums.developer.apple.com/thread/4743
  48. FOUNDATION_EXPORT const int kFIRInstanceIDSecMissingEntitlementErrorCode;