2 * Copyright 2017 Google
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #import "FIRMessagingConstants.h"
19 NSString *const kFIRMessagingRawDataKey = @"rawData";
20 NSString *const kFIRMessagingCollapseKey = @"collapse_key";
21 NSString *const kFIRMessagingFromKey = @"from";
23 NSString *const kFIRMessagingSendTo = @"google." @"to";
24 NSString *const kFIRMessagingSendTTL = @"google." @"ttl";
25 NSString *const kFIRMessagingSendDelay = @"google." @"delay";
26 NSString *const kFIRMessagingSendMessageID = @"google." @"msg_id";
27 NSString *const KFIRMessagingSendMessageAppData = @"google." @"data";
29 NSString *const kFIRMessagingMessageInternalReservedKeyword = @"gcm.";
30 NSString *const kFIRMessagingMessagePersistentIDKey = @"persistent_id";
32 NSString *const kFIRMessagingMessageIDKey = @"gcm." @"message_id";
33 NSString *const kFIRMessagingMessageAPNSContentAvailableKey = @"content-available";
34 NSString *const kFIRMessagingMessageSyncViaMCSKey = @"gcm." @"duplex";
35 NSString *const kFIRMessagingMessageSyncMessageTTLKey = @"gcm." @"ttl";
36 NSString *const kFIRMessagingMessageLinkKey = @"gcm." @"app_link";
38 NSString *const kFIRMessagingRemoteNotificationsProxyEnabledInfoPlistKey =
39 @"FirebaseAppDelegateProxyEnabled";
41 NSString *const kFIRMessagingApplicationSupportSubDirectory = @"Google/FirebaseMessaging";
44 NSString *const kFIRMessagingCheckinFetchedNotification = @"com.google.gcm.notif-checkin-fetched";
45 NSString *const kFIRMessagingAPNSTokenNotification = @"com.firebase.iid.notif.apns-token";
46 NSString *const kFIRMessagingFCMTokenNotification = @"com.firebase.iid.notif.fcm-token";
47 NSString *const kFIRMessagingInstanceIDTokenRefreshNotification =
48 @"com.firebase.iid.notif.refresh-token";
49 NSString *const kFIRMessagingRegistrationTokenRefreshNotification =
50 @"com.firebase.iid.notif.refresh-token";
52 const int kFIRMessagingSendTtlDefault = 24 * 60 * 60; // 24 hours