Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/*
2
 * Copyright 2020 Google LLC
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
#import <Foundation/Foundation.h>
18
 
19
NS_ASSUME_NONNULL_BEGIN
20
 
21
/** Connector for bridging communication between Firebase SDKs and FIRMessaging API. */
22
@protocol FIRMessagingInterop <NSObject>
23
 
24
/**
25
 * The FCM registration token is used to identify this device so that FCM can send notifications to
26
 * it. It is associated with your APNs token when the APNs token is supplied, so messages sent to
27
 * the FCM token will be delivered over APNs.
28
 *
29
 * The FCM registration token is sometimes refreshed automatically. In your FIRMessaging delegate,
30
 * the delegate method `messaging:didReceiveRegistrationToken:` will be called once a token is
31
 * available, or has been refreshed. Typically it should be called once per app start, but
32
 * may be called more often if the token is invalidated or updated.
33
 *
34
 * Once you have an FCM registration token, you should send it to your application server, so it can
35
 * use the FCM token to send notifications to your device.
36
 */
37
@property(nonatomic, readonly, nullable) NSString *FCMToken NS_SWIFT_NAME(fcmToken);
38
 
39
@end
40
 
41
NS_ASSUME_NONNULL_END