Skip to content

Commit c13d4e3

Browse files
Merge pull request #31 from JoaoCaixinha/master
getIsConnected promise fix
2 parents 79e5435 + 163b04c commit c13d4e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordovapush",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "This Cordova plugin should be used with the iOS/Android platforms together with the Realtime Messaging library (ORTC) for Push Notifications support.",
55
"main": "index.js",
66
"repository": {

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
33
id="co.realtime.plugins.CordovaPush"
4-
version="0.2.1">
4+
version="0.2.2">
55

66
<name>cordovapush</name>
77
<author>Reatime</author>

www/OrtcPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
OrtcPushPlugin.prototype.getIsConnected = function() {
2727
var promise = new Promise(function(resolve, reject) {
28-
cordova.exec(function(){resolve();}, function(){reject();}, "OrtcPushPlugin", "getIsConnected", []);
28+
cordova.exec(function(res){resolve(res);}, function(){reject();}, "OrtcPushPlugin", "getIsConnected", []);
2929
});
3030
return promise;
3131
};

0 commit comments

Comments
 (0)