# Push Notifications

### Push Callbacks <a href="#push-callbacks" id="push-callbacks"></a>

Netmera has following push callbacks:

* Push Register
* Push Receive
* Push Click
* Push Button Click

```typescript
import { NetmeraPlugin } from '@awesome-cordova-plugins/netmera/ngx';

constructor(private netmera: NetmeraPlugin) {}
...

this.netmera.requestPushNotificationAuthorization()

this.netmera.subscribePushNotification().subscribe(pushObject => {
console.log("Notification Payload")
});

this.netmera.subscribePushClick().subscribe(pushObject => {
console.log("Notification Payload")
});

this.netmera.subscribePushButtonClick().subscribe(pushObject => {
console.log("Notification Payload")
});
```

### Netmera Push Object <a href="#netmera-push-object" id="netmera-push-object"></a>

```typescript
export interface NetmeraPush {
  title: string;
  subtitle: string;
  body: string;
  pushId: string;
  pushInstanceId: string;
  pushType: number;
  inboxStatus: number;
  sendDate: any;
  deeplinkUrl: string;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://user.netmera.com/netmera-developer-guide/platforms/cordova/push-notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
