deportKeyValues

This method contains device-specific values. It updates the login time and device token on the server.

To add the method:

Add this method into the didRegisterForRemoteNotificationsWithDeviceToken method in the AppDelegate.m file (in Objective_C) or the AppDelegate.swift file (in Swift) in a folder of your choice.

- (void)deportKeyValues:(NSString * _Nonnull)app_group_key
app_key:(NSString * _Nonnull)app_key
uniqueUserID:(id _Nonnull)uniqueUserID
deviceTokenString:(id _Nullable)deviceTokenString
timerValue:(id _Nullable)timerValue
isiOSNative:(BOOL)isiOSNative;

Example

Objective C
Swift
[instance_object deportKeyValues:@"xxxxxxxx-0000-1111-7777-xxxxx"
    app_key:@"xxxxxxxx-0001-111a-777e-xxxxx"
    uniqueUserID:@"100"
    deviceTokenString:@"DEVICE_TOKEN_STRING"
    timerValue:@"120"
    isiOSNative:true
];
instance.deportKeyValues(
    app_group_key: "xxxxxxxx-0000-1111-7777-xxxxx",
    app_key: "xxxxxxxx-0001-111a-777e-xxxxx",
    uniqueUserID: "100",
    deviceTokenString: "DEVICE_TOKEN_STRING",
    timerValue: "120",
    isiOSNative: true
)

Arguments

Name Type Mandatory Description
app_group_key NSString Mandatory This is the Application Group Identifier for your app.
App_key NSString Mandatory This is the Application key.
uniqueUserID id Mandatory This is a unique identifier for the user.
deviceTokenString id Optional This is the Device Token.
timerValue id Optional This indicates (in minutes) how frequently data is pushed from SDK to the server. The minimum is 120 seconds.
isiOSNative Boolean Mandatory For native iOS apps, true. For Cordova apps, false.

results matching ""

    No results matching ""