AutorÃa | Ultima modificación | Ver Log |
/** Copyright 2017 Google** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at** http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*/#import "FirebaseMessaging/Sources/FIRMessagingConstants.h"NSString *const kFIRMessagingFromKey = @"from";NSString *const kFIRMessagingSendTo = @"google."@"to";NSString *const kFIRMessagingSendTTL = @"google."@"ttl";NSString *const kFIRMessagingSendDelay = @"google."@"delay";NSString *const kFIRMessagingSendMessageID = @"google."@"msg_id";NSString *const KFIRMessagingSendMessageAppData = @"google."@"data";NSString *const kFIRMessagingMessageInternalReservedKeyword = @"gcm.";NSString *const kFIRMessagingMessagePersistentIDKey = @"persistent_id";NSString *const kFIRMessagingMessageIDKey = @"gcm.message_id";NSString *const kFIRMessagingMessageAPNSContentAvailableKey = @"content-available";NSString *const kFIRMessagingMessageSyncMessageTTLKey = @"gcm."@"ttl";NSString *const kFIRMessagingMessageLinkKey = @"gcm."@"app_link";NSString *const kFIRMessagingSenderID = @"google.c.sender.id";NSString *const kFIRMessagingFID = @"google.c.fid";NSString *const kFIRMessagingAnalyticsComposerIdentifier = @"google.c.a.c_id";NSString *const kFIRMessagingAnalyticsMessageLabel = @"google.c.a.m_l";NSString *const kFIRMessagingAnalyticsComposerLabel = @"google.c.a.c_l";NSString *const kFIRMessagingRemoteNotificationsProxyEnabledInfoPlistKey =@"FirebaseAppDelegateProxyEnabled";NSString *const kFIRMessagingSubDirectoryName = @"Google/FirebaseMessaging";// NotificationsNSString *const kFIRMessagingCheckinFetchedNotification = @"com.google.gcm.notif-checkin-fetched";NSString *const kFIRMessagingAPNSTokenNotification = @"com.firebase.iid.notif.apns-token";NSString *const kFIRMessagingRegistrationTokenRefreshNotification =@"com.firebase.iid.notif.refresh-token";const int kFIRMessagingSendTtlDefault = 24 * 60 * 60; // 24 hours// CommandsNSString *const kFIRMessaging_CMD_RST = @"RST";// NOTIFICATIONSNSString *const kFIRMessagingDefaultGCMTokenFailNotification =@"com.firebase.iid.notif.fcm-token-fail";// MiscellaneousNSString *const kFIRMessagingAllScopeIdentifier = @"iid-all";NSString *const kFIRMessagingDefaultTokenScope = @"*";NSString *const kFIRMessagingInstanceIDSubDirectoryName = @"Google/FirebaseInstanceID";// Registration OptionsNSString *const kFIRMessagingTokenOptionsAPNSKey = @"apns_token";NSString *const kFIRMessagingTokenOptionsAPNSIsSandboxKey = @"apns_sandbox";NSString *const kFIRMessagingTokenOptionsFirebaseAppIDKey = @"gmp_app_id";NSString *const kFIRMessagingParamInstanceID = @"appid";NSString *const kFIRMessagingAPNSTokenType =@"APNSTokenType"; // APNS Token type key stored in user info.NSString *const kFIRMessagingAppDelegateProxyEnabledInfoPlistKey =@"FirebaseAppDelegateProxyEnabled";// iOS Keychain error https://forums.developer.apple.com/thread/4743// An undocumented error code hence need to be redeclared.const int kFIRMessagingSecMissingEntitlementErrorCode = -34018;