You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Packages that cannot be autolinked yet can be added manually here, for
44
+
// example:
45
+
packages.add(newCleverTapPackage());// only needed when not auto-linking
46
+
return packages;
47
+
}
52
48
```
53
49
54
50
3.InitialiseClevertapReactNativeIntegration-This adds support for `ClevertapPushNotiificationClicked` from killed state and registers the `ActivityLifecycleCallback`
@@ -60,52 +56,52 @@ Note: Need to use **@import CleverTapSDK;** instead of **#import <CleverTap-iOS-
- From clevertap-react-native **v3.0.0** onwards developers can make their `Application` class extend `CleverTapApplication` to support out of the box integration. Before **v3.0.0** developers were forced to register activity lifecycle in their `Application` class manually which is being abstract out in `CleverTapApplication` class.
ActivityLifecycleCallback.register(this); // Not required for v3.0.0+
101
-
super.onCreate();
102
-
// ...
103
-
}
104
-
}
94
+
public void onCreate() {
95
+
CleverTapAPI.setDebugLevel(LogLevel.VERBOSE);
96
+
ActivityLifecycleCallback.register(this); // Not required for v3.0.0+
97
+
super.onCreate();
98
+
// ...
99
+
}
100
+
}
105
101
```
106
102
4. <a name="step4"></a> Optionally override onCreate in MainActivity.java to notify CleverTap of a launch deep link (`android/app/src/[...]/MainActivity.java`)
107
103
```java
108
-
import com.clevertap.react.CleverTapModule;
104
+
import com.clevertap.react.CleverTapRnAPI;
109
105
import android.os.Bundle;
110
106
111
107
@@ -115,7 +111,7 @@ Note: Need to use **@import CleverTapSDK;** instead of **#import <CleverTap-iOS-
0 commit comments