NowPushSDK class - Android
concept brazil Updated Sep 10, 2026 1 min read NowPushSDKAndroidAPI.md
The NowPushSDK class provides the function necessary to create a NowPushService that enables the sending of unsolicited (push) notifications to Android devices.
Parent Topic:Mobile SDK - Android
NowPushSDK - makePushService(instanceURL: URL)
Creates a NowPush service.
| Name | Type | Description |
|---|---|---|
| instanceURL | URL | URL of the ServiceNow instance that the NowPushService should interact with. |
| Type | Description |
|---|---|
| Result<NowPushService> | NowPushService object wrapped in a Kotlin Result object. |
This example shows how to setup to makePushService() method to create the Push Service.
JavaScript
private var nowPushService: NowPushService? = null
/** * Create the NowPushService once in the lifetime of the application inside the Application * class or another manager class that will be injected into other classes via dagger/hilt. * NowPushService should be created after initializing the NowSDK. */suspend fun getNowPushService(): NowPushService? { if (nowPushService != null) return nowPushService
return NowPushSDK.makePushService(URL("https://instance-name.service-now.com")).getOrThrow() .also { this.nowPushService = it }}51 lines · 2.1 KB
---
title: NowPushSDK class - Android
description: The NowPushSDK class provides the function necessary to create a NowPushService that enables the sending of unsolicited \(push\) notifications to Android devices.Creates a NowPush service.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/api-reference/cllent-mobile-api-reference/NowPushSDKAndroidAPI.html
release: brazil
product: Cllent Mobile API Reference
classification: cllent-mobile-api-reference
topic_type: concept
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Mobile SDK - Android, Mobile SDK API reference, API reference, API implementation and reference]
---
# NowPushSDK class- Android
The NowPushSDK class provides the function necessary to create a `NowPushService` that enables the sending of unsolicited \(push\) notifications to Android devices.
**Parent Topic:**[Mobile SDK - Android](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/cllent-mobile-api-reference/MobileSDKAndroidAPI.md)
## NowPushSDK - makePushService\(instanceURL: URL\)
Creates a NowPush service.
|Name|Type|Description|
|----|----|-----------|
|instanceURL|[URL](https://developer.android.com/reference/kotlin/java/net/URL.html)|URL of the ServiceNow instance that the NowPushService should interact with.|
|Type|Description|
|----|-----------|
|Result<NowPushService>|NowPushService object wrapped in a [Kotlin Result object](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-result/).|
This example shows how to setup to makePushService\(\) method to create the Push Service.
```
private var nowPushService: NowPushService? = null
/**
* Create the NowPushService once in the lifetime of the application inside the Application
* class or another manager class that will be injected into other classes via dagger/hilt.
* NowPushService should be created after initializing the NowSDK.
*/
suspend fun getNowPushService(): NowPushService? {
if (nowPushService != null) return nowPushService
return NowPushSDK.makePushService(URL("https://instance-name.service-now.com")).getOrThrow()
.also { this.nowPushService = it }
}
```
| title | NowPushSDK class - Android |
| description | The NowPushSDK class provides the function necessary to create a NowPushService that enables the sending of unsolicited \(push\) notifications to Android devices.Creates a NowPush service. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/api-reference/cllent-mobile-api-reference/NowPushSDKAndroidAPI.html |
| release | brazil |
| product | Cllent Mobile API Reference |
| classification | cllent-mobile-api-reference |
| topic_type | concept |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Mobile SDK - AndroidMobile SDK API referenceAPI referenceAPI implementation and reference |