To get advertising id, add AdSupport.framework to Linked Frameworks and Libraries of your target project
Add notificationOpened: to send notification action event to React-Native
Add registerToUNUserNotificationCenter method to get notification actions by implementing the following code:
(To display rich notification, make sure to read our [documentation]())
v1.3.0 (11/05/2019)
Changes:
Update Chabok iOS SDK (v1.19.0)
Update Chabok android SDK (v2.16.0)
Add
setUserInfo
method to send user information.Add
setDefaultTracker
for tracking pre-install campaigns.Add
appWillOpenUrl
method for sending attribution information in deeplinks.Add
notificationOpened
event for receiving click on notifications (actions and dismiss).registerAsGuest
method added for applications with guest users, and for tracking installs on app launch (just like Adjust).Upgrade:
INSTALL_REFERRER
. Add the following dependency to your gradle.MainApplication
class inonCreate
method:iOS:
To get advertising id, add
AdSupport.framework
to Linked Frameworks and Libraries of your target projectAdd
notificationOpened:
to send notification action event to React-NativeAdd
registerToUNUserNotificationCenter
method to get notification actions by implementing the following code: (To display rich notification, make sure to read our [documentation]())@interface AppDelegate ()
@end
@implementation AppDelegate
[PushClientManager.defaultManager addDelegate:self];
[AdpPushClient registerToUNUserNotificationCenter];
...
return true; }
-(void) userNotificationCenter:(UNUserNotificationCenter )center didReceiveNotificationResponse:(UNNotificationResponse )response withCompletionHandler:(void (^)(void))completionHandler{
[AdpPushClient notificationOpened:response.notification.request.content.userInfo actionId:response.actionIdentifier];
}
-(void) application:(UIApplication )application didReceiveRemoteNotification:(NSDictionary )userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler{
[AdpPushClient notificationOpened:userInfo];
}
-(void) application:(UIApplication )application didReceiveRemoteNotification:(NSDictionary )userInfo{
[AdpPushClient notificationOpened:userInfo];
}
-(void)application:(UIApplication )application handleActionWithIdentifier:(NSString )identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void (^)())completionHandler{
[AdpPushClient notificationOpened:userInfo actionId:identifier];
}