Keine Beschreibung

FIRInstanceIDConstants.h 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 kFIRInstanceIDDefaultGCMTokenNotification;
  28. FOUNDATION_EXPORT NSString *const kFIRInstanceIDDefaultGCMTokenFailNotification;
  29. FOUNDATION_EXPORT NSString *const kFIRInstanceIDIdentityInvalidatedNotification;
  30. #pragma mark - Miscellaneous
  31. /// The scope used to save the IID "*" scope token. This is used for saving the
  32. /// IID auth token that we receive from the server. This feature was never
  33. /// implemented on the server side.
  34. FOUNDATION_EXPORT NSString *const kFIRInstanceIDAllScopeIdentifier;
  35. /// The scope used to save the IID "*" scope token.
  36. FOUNDATION_EXPORT NSString *const kFIRInstanceIDDefaultTokenScope;
  37. /// Subdirectory in search path directory to store InstanceID preferences.
  38. FOUNDATION_EXPORT NSString *const kFIRInstanceIDSubDirectoryName;
  39. /// The key for APNS token in options dictionary.
  40. FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenOptionsAPNSKey;
  41. /// The key for APNS token environment type in options dictionary.
  42. FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenOptionsAPNSIsSandboxKey;
  43. /// The key for GMP AppID sent in registration requests.
  44. FOUNDATION_EXPORT NSString *const kFIRInstanceIDTokenOptionsFirebaseAppIDKey;
  45. /// The key to enable auto-register by swizzling AppDelegate's methods.
  46. FOUNDATION_EXPORT NSString *const kFIRInstanceIDAppDelegateProxyEnabledInfoPlistKey;
  47. /// Error code for missing entitlements in Keychain. iOS Keychain error
  48. /// https://forums.developer.apple.com/thread/4743
  49. FOUNDATION_EXPORT const int kFIRInstanceIDSecMissingEntitlementErrorCode;