diff --git a/README.md b/README.md index 5ccc24a0..c184fb48 100644 --- a/README.md +++ b/README.md @@ -363,6 +363,7 @@ Branch.createBranchUniversalObject({ title: 'Just another title', contentDescription: 'Just another description', contentImageUrl: '/img.jpg', + contentType: 'text', contentIndexingMode: 'public' }).then(function (newBranchUniversalObj) { // Success Callback diff --git a/src/android/io/branch/BranchSDK.java b/src/android/io/branch/BranchSDK.java index d8ab14bd..0e80aa06 100644 --- a/src/android/io/branch/BranchSDK.java +++ b/src/android/io/branch/BranchSDK.java @@ -372,6 +372,9 @@ private void createBranchUniversalObject(JSONObject options, CallbackContext cal if (options.has("contentImageUrl")) { branchObj.setContentImageUrl(options.getString("contentImageUrl")); } + if (options.has("contentType")) { + branchObj.setContentType(options.getInt("contentType")); + } // Set content visibility if (options.has("contentIndexingMode")) {