From 432c3a5619bf5b4922a2482b2500451b69aa832e Mon Sep 17 00:00:00 2001 From: yousefhamza Date: Tue, 27 Jun 2017 14:14:04 +0200 Subject: [PATCH] add docs --- index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e72b7308e..4cd1c339d 100644 --- a/index.js +++ b/index.js @@ -740,8 +740,17 @@ module.exports = { } }, + /** + * @summary Checks wether app is development/Beta testing OR live + * Note: This API is iOS only + * It reutrns in the callback false if in development or beta testing on Test Flight, and true if app is live on the + * app store. + * @param {function} isInstabugNotificationCallback callback with argument as return value 'isLive' + */ isRunningLive: function(runningLiveCallBack) { - Instabug.isRunningLive(runningLiveCallBack) + if (Platform.OS === 'ios') { + Instabug.isRunningLive(runningLiveCallBack) + } }, /**