Fix getUnreadMessagesCount API params
@@ -237,7 +237,11 @@ module.exports = {
* Notifications count, or -1 incase the SDK has not been initialized.
*/
getUnreadMessagesCount: function (messageCountCallback) {
+ if (Platform.OS === 'ios') {
Instabug.getUnreadMessagesCount(messageCountCallback);
+ } else if (Platform.OS === 'android') {
+ Instabug.getUnreadMessagesCount();
+ }
},
/**
