From 4bc536083138d6c3fa48a7e8df48823d7270806b Mon Sep 17 00:00:00 2001 From: Piotr Kosko Date: Wed, 11 May 2016 14:30:42 +0200 Subject: [PATCH] Fixed method name in JS layer [Bug] name of method was incorrect Change-Id: I05c9ee1b389b1a31d1d702992580275f771493c8 Signed-off-by: Piotr Kosko --- src/push/push_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/push/push_api.js b/src/push/push_api.js index c103654..8b36f7a 100644 --- a/src/push/push_api.js +++ b/src/push/push_api.js @@ -74,7 +74,7 @@ PushManager.prototype.register = function() { } ]); - var ret = native.call('Push_register', {}, function(msg) { + var ret = native.call('Push_registerApplication', {}, function(msg) { if (msg.error) { if (validatorType.isFunction(data.errorCallback)) { data.errorCallback(native.getErrorObject(msg)); @@ -108,7 +108,7 @@ PushManager.prototype.unregister = function() { nullable: true } ]); - var result = native.call('Push_unregister', {}, function(msg) { + var result = native.call('Push_unregisterApplication', {}, function(msg) { if (msg.error) { if (validatorType.isFunction(data.errorCallback)) { data.errorCallback(native.getErrorObject(msg)); -- 2.7.4