SMICoreFactory

Objective-C


@interface SMICoreFactory : NSObject <SMICoreFactory>

Swift

class CoreFactory : NSObject, CoreFactoryProtocol

This factory class allows you to create an instance of SMICoreClient using an SMICoreConfiguration config object. For additional documentation, refer to the protocol documentation for SMICoreFactory.

  • The current Core SDK version.

    Declaration

    Objective-C

    @property (class, nonatomic, strong, readonly, nullable) NSString *sdkVersion;

    Swift

    class var sdkVersion: String? { get }
  • Unavailable

    This constructor is unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Provide the APNS token which will be forwarded to the In-App services to forward notifications related to conversations.

    Note

    This method is idempotent. It is safe to call whenever the application receives or retrieves an APNS device token. The token will not be uploaded to our services until needed. Executing this method does not result in any network traffic directly.

    Declaration

    Objective-C

    + (void)provideDeviceToken:(nonnull NSString *)deviceToken;

    Swift

    class func provide(deviceToken: String)

    Parameters

    deviceToken

    The APNS device token.