Advanced Settings

indigitall SDK for Segments clicking here

Segments / Topics

Our SDK allows you to classify users into different customizable groups. This is very useful for:

  • Implement a preferences screen so that the user can choose the topics for which they want to receive notifications.
  • Label according to the navigation or actions that the user performs.
  • Segment communications according to whether the user has identified or is anonymous.
  • Segment based on language, culture, customer category, or based on any other criteria you need.

Remember that you must first define the groups you want to work with in the indigitall console (Tools> Topics).

  • List groups

Use the topicsList method to get the list of groups that are configured in your indigitall project. The callback of this method receives as a parameter an array of Topics, which contains the information of all the available groups, as well as a flag that indicates whether the user is included in any of them.

InAppIndigitall.topicsListWith { topics in
            //get codes
        }, onError: { (error) in
            //print error
        }
[InAppIndigitall topicsListWithOnSuccess:^(NSArray<INInAppTopic *> * _Nonnull topics) {
        //get topics
    } onError:^(INError * _Nonnull error) {
        //print error
    }];
  • Manage subscription

To manage the device subscription to one or more groups, there are two methods: topicsSubscribe and topicsUnsubscribe.

Optionally, both receive a TopicsCallback object as the third parameter, which will return the list of all Topic in the project.

InAppIndigitall.topicsSubscribe(withArrayString: []) { topics in
       //get codes     
        }

InAppIndigitall.topicsUnSubscribe(withArrayString: []) { topics in
            //get codes
        }
[InAppIndigitall topicsSubscribeWithArrayString:@[topics] onSuccess:^(NSArray<NSString *> * _Nonnull topics) {
   //get codes
} onError:^(INError * _Nonnull error) {
   //print error
}];

[InAppIndigitall topicsUnSubscribeWithArrayString:@[topics] onSuccess:^(NSArray<NSString *> * _Nonnull topics) {
        //get codes
} onError:^(INError * _Nonnull error) {
    //print error
}];