Skip to content
This repository was archived by the owner on Feb 7, 2019. It is now read-only.

Commit 5b2c670

Browse files
authored
Merge pull request #56 from hypery2k/patch-1
Fix Angular Android issues
2 parents 3531ab0 + 46cc2a7 commit 5b2c670

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

push-plugin.android.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = (function () {
22
var app = require('application');
3-
var context = app.android.context;
4-
3+
54
(function() {
65
//debugger;
76
// Hook on the application events
@@ -10,7 +9,7 @@ module.exports = (function () {
109

1110
var pluginObject = {
1211
register: function (options, successCallback, errorCallback) {
13-
com.telerik.pushplugin.PushPlugin.register(context, options.senderID,
12+
com.telerik.pushplugin.PushPlugin.register(app.android.context, options.senderID,
1413
//Success
1514
new com.telerik.pushplugin.PushPluginListener(
1615
{
@@ -20,7 +19,7 @@ module.exports = (function () {
2019
);
2120
},
2221
unregister: function (onSuccessCallback, onErrorCallback, options) {
23-
com.telerik.pushplugin.PushPlugin.unregister(context, options.senderID, new com.telerik.pushplugin.PushPluginListener(
22+
com.telerik.pushplugin.PushPlugin.unregister(app.android.context, options.senderID, new com.telerik.pushplugin.PushPluginListener(
2423
{
2524
success: onSuccessCallback
2625
}

0 commit comments

Comments
 (0)