Skip to content

Commit 4f13c4d

Browse files
committed
Removed GCM dependency.
1 parent ad68664 commit 4f13c4d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ android {
2323
dependencies {
2424
implementation fileTree(dir: 'libs', include: ['*.jar'])
2525
implementation 'com.facebook.react:react-native:+'
26-
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
2726
implementation 'com.google.firebase:firebase-messaging:17.6.0'
2827
implementation 'com.android.support:appcompat-v7:26.1.0'
2928
implementation 'com.microsoft.azure:notification-hubs-android-sdk:0.4@aar'

android/src/main/java/com/azure/reactnative/notificationhub/ReactNativeNotificationHubModule.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import com.google.android.gms.common.GoogleApiAvailability;
1515

1616
import com.microsoft.windowsazure.messaging.NotificationHub;
17-
import com.microsoft.windowsazure.notifications.NotificationsManager;
1817

1918
import com.facebook.react.bridge.Promise;
2019
import com.facebook.react.bridge.ReactApplicationContext;
@@ -106,7 +105,6 @@ public void register(ReadableMap config, Promise promise) {
106105

107106
Intent intent = new Intent(reactContext, ReactNativeRegistrationIntentService.class);
108107
reactContext.startService(intent);
109-
NotificationsManager.handleNotifications(reactContext, senderID, ReactNativeNotificationsHandler.class);
110108
}
111109

112110
@ReactMethod
@@ -126,7 +124,6 @@ public void unregister(Promise promise) {
126124
try {
127125
hub.unregister();
128126
notificationHubUtil.setRegistrationID(reactContext, null);
129-
NotificationsManager.stopHandlingNotifications(reactContext);
130127
} catch (Exception e) {
131128
promise.reject(ERROR_NOTIFICATION_HUB, e);
132129
}

0 commit comments

Comments
 (0)