Created
May 16, 2015 15:54
-
-
Save Budincsevity/97043bab2d95c446ced6 to your computer and use it in GitHub Desktop.
Notification Hub registration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Register a new gcm ID | |
GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(context); | |
String gcmID = gcm.register(SENDER_ID); | |
//New NotificationHub instance | |
NotificationHub hub = new NotificationHub("<hub name>", "<connection string>", context); | |
//Register your gcm ID with NotificationHub | |
NativeRegistration registration = hub.register(gcmID); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment