Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
 
17
/**
18
 *  Global constants to be put here.
19
 *
20
 */
21
#import <Foundation/Foundation.h>
22
 
23
#ifndef _FIRMessaging_CONSTANTS_H
24
#define _FIRMessaging_CONSTANTS_H
25
 
26
FOUNDATION_EXPORT NSString *const kFIRMessagingFromKey;
27
FOUNDATION_EXPORT NSString *const kFIRMessagingMessageIDKey;
28
FOUNDATION_EXPORT NSString *const kFIRMessagingMessageAPNSContentAvailableKey;
29
FOUNDATION_EXPORT NSString *const kFIRMessagingMessageSyncMessageTTLKey;
30
FOUNDATION_EXPORT NSString *const kFIRMessagingMessageLinkKey;
31
FOUNDATION_EXPORT NSString *const kFIRMessagingSenderID;
32
FOUNDATION_EXPORT NSString *const kFIRMessagingFID;
33
FOUNDATION_EXPORT NSString *const kFIRMessagingAnalyticsComposerIdentifier;
34
FOUNDATION_EXPORT NSString *const kFIRMessagingAnalyticsMessageLabel;
35
FOUNDATION_EXPORT NSString *const kFIRMessagingAnalyticsComposerLabel;
36
 
37
FOUNDATION_EXPORT NSString *const kFIRMessagingRemoteNotificationsProxyEnabledInfoPlistKey;
38
FOUNDATION_EXPORT NSString *const kFIRMessagingSubDirectoryName;
39
 
40
#pragma mark - Notifications
41
 
42
FOUNDATION_EXPORT NSString *const kFIRMessagingCheckinFetchedNotification;
43
FOUNDATION_EXPORT NSString *const kFIRMessagingAPNSTokenNotification;
44
FOUNDATION_EXPORT NSString *const kFIRMessagingDefaultGCMTokenFailNotification;
45
FOUNDATION_EXPORT NSString *const kFIRMessagingRegistrationTokenRefreshNotification;
46
 
47
FOUNDATION_EXPORT const int kFIRMessagingSendTtlDefault;  // 24 hours
48
 
49
/**
50
 *  Value included in a structured response indicating an identity reset.
51
 */
52
FOUNDATION_EXPORT NSString *const kFIRMessaging_CMD_RST;
53
 
54
#pragma mark - Miscellaneous
55
 
56
/// The scope used to save the IID "*" scope token. This is used for saving the
57
/// IID auth token that we receive from the server. This feature was never
58
/// implemented on the server side.
59
FOUNDATION_EXPORT NSString *const kFIRMessagingAllScopeIdentifier;
60
/// The scope used to save the IID "*" scope token.
61
FOUNDATION_EXPORT NSString *const kFIRMessagingDefaultTokenScope;
62
 
63
/// Subdirectory in search path directory to store InstanceID preferences.
64
FOUNDATION_EXPORT NSString *const kFIRMessagingInstanceIDSubDirectoryName;
65
 
66
/// The key for APNS token in options dictionary.
67
FOUNDATION_EXPORT NSString *const kFIRMessagingTokenOptionsAPNSKey;
68
 
69
/// The key for APNS token environment type in options dictionary.
70
FOUNDATION_EXPORT NSString *const kFIRMessagingTokenOptionsAPNSIsSandboxKey;
71
 
72
/// The key for GMP AppID sent in registration requests.
73
FOUNDATION_EXPORT NSString *const kFIRMessagingTokenOptionsFirebaseAppIDKey;
74
 
75
FOUNDATION_EXPORT NSString *const kFIRMessagingAPNSTokenType;
76
 
77
/// The key to enable auto-register by swizzling AppDelegate's methods.
78
FOUNDATION_EXPORT NSString *const kFIRMessagingAppDelegateProxyEnabledInfoPlistKey;
79
 
80
/// Error code for missing entitlements in Keychain. iOS Keychain error
81
/// https://forums.developer.apple.com/thread/4743
82
FOUNDATION_EXPORT const int kFIRMessagingSecMissingEntitlementErrorCode;
83
 
84
/// The key for InstallationID or InstanceID in token request.
85
FOUNDATION_EXPORT NSString *const kFIRMessagingParamInstanceID;
86
 
87
#endif