azure-notificationhubs-android | Android SDK and Samples for Azure Notification Hubs | Azure library
kandi X-RAY | azure-notificationhubs-android Summary
kandi X-RAY | azure-notificationhubs-android Summary
ATTENTION: JFrog is shutting down Bintray, and this library is now published on Maven Central. Read more on our developer blog. Azure Notification Hubs (ANH) provides a multi-platform, scaled-out push infrastructure that enables you to send mobile push notifications from any backend (in the cloud or on-premises) to any mobile platform. To learn more, visit our Developer Center.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a Notification object .
- Handle an intent intent .
- Refresh registration information for a given pns handle .
- Generates an auth token .
- Returns the view which is created when the view is created .
- Reopens the network .
- Determine whether the template registration is a template registration .
- Called when a push notification is received .
- Load payload from XML
- Extracts the value from the input .
azure-notificationhubs-android Key Features
azure-notificationhubs-android Examples and Code Snippets
// This is not a complete build.gradle file, it only highlights the portions you'll need to use ANH.
allprojects {
repositories {
// Ensure you have the following repsoitory in your "allprojects", "repositories" section.
mavenCen
// This is not a complete build.gradle file, it only highlights the portions you'll need to use ANH.
android {
defaultConfig {
// Populates BuildConfig.hubName with the value that was stored APP_HUB_NAME at build time.
buildConfi
Community Discussions
Trending Discussions on azure-notificationhubs-android
QUESTION
Since AppCenter retiring at the end of this year, I have started migrating to Azure-Notification-Hub. But the documentation for notification-hub is not clear at all. Especially the documentation for Xamarin.Android. It does not match with their latest SDK.
In the latest (version 1.1.1) azure-notification-hub SDK for Android (or Xamarin.Android) there's no need to implement FirebaseMessagingService
. NotificationHub.Start()
method registers the device in the Notification-Hub. A device registered with this way gets notifications without any problem.
ANSWER
Answered 2020-Nov-09 at 23:10Is it necessary to use one of those methods if my app registered with the notification-hub using the NotificationHub.Start() method?
When you invoke NotificationHub.start(Application, ...)
, the Android SDK will listen for changes like added tags, new FirebaseMessagingService tokens, etc. Anytime it detects a change, it will invoke an InstallationAdapter
to inform a backend of the new details.
The default InstallationAdapter
will send an PUT request to the Azure Notification Hubs backend as documented here. This is what is created by NotificationHub.start(Application, string, string)
; for people who are not hosting their own backend, this is a sensible default.
If you have your own backend where you track devices, or you're just looking to keep your credentials server-side, you can swap out the InstallationAdapter
to be a class that invokes your API. All you need to do is implement the InstallationAdapter
interface and initialize the SDK by calling NotificationHub.start(Application, InstallationAdapter)
.
If you use the NotificationHub.start(...)
methods as indicated above, there is no further registration action required.
With that in mind is it possible to use the NotificationHub.InstallationId to use as a tag (eg: "handle:") to send device-specific notifications?
Yes! This documentation walks you through how to use the special tag format $InstallationId:{YOUR_TAG_ID}
to target a specific device.
When you've used NotificationHub.start()
, if you do not specify an InstallationId
, it will generate one for you.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-notificationhubs-android
Ensure your application is registered with Firebase.
Add a reference to this library in your build.gradle.
Add your hub's credentials to your application.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page