Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ public static void askForOverlayPermissions() {
public void onCreate() {
super.onCreate();

String optimoveApiKey = "";
String optimobileApiKey = "";

Optimove.initialize(this, new OptimoveConfig.Builder(
null,
"base64Creds")
optimoveApiKey, optimobileApiKey)
Comment on lines +33 to +37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are empty API keys intentional here? Most SDKs fail initialization with empty strings rather than null values.

Suggested change
String optimoveApiKey = "";
String optimobileApiKey = "";
Optimove.initialize(this, new OptimoveConfig.Builder(
null,
"base64Creds")
optimoveApiKey, optimobileApiKey)
String optimoveApiKey = null;
String optimobileApiKey = null;
Optimove.initialize(this, new OptimoveConfig.Builder(
optimoveApiKey, optimobileApiKey)

Finding type: Logical Bugs

.enableInAppMessaging(OptimoveConfig.InAppConsentStrategy.AUTO_ENROLL)
.build());
// Shouldn't be called unless explicitly told to
Expand Down