diff --git a/content/in-app-ui/android/sdk/push-notifications.mdx b/content/in-app-ui/android/sdk/push-notifications.mdx index 2148915a7..484e14574 100644 --- a/content/in-app-ui/android/sdk/push-notifications.mdx +++ b/content/in-app-ui/android/sdk/push-notifications.mdx @@ -4,7 +4,7 @@ description: "Documentation to help you get started with the Push Notifications section: SDKs --- -**Note:** We Recommend taking advantage of our [KnockMessagingService & KnockActivity](/in-app-ui/android/sdk/reference#knockmessagingservice--knockactivity) to make managing your Push Notifications simpler. +**Note:** We recommend taking advantage of our [KnockMessagingService & KnockActivity](/in-app-ui/android/sdk/reference#knockmessagingservice--knockactivity) to make managing your push notifications simpler. ## Prerequisites @@ -64,7 +64,7 @@ section: SDKs ``` -## 5: Requesting user permission for push notifications +## 5. Requesting user permission for push notifications - To prompt the user to approve or deny push notification permissions call the `Knock.shared.requestNotificationPermission()` method. @@ -96,7 +96,7 @@ section: SDKs } ``` -## 5. Receive push notifications +## 7. Receive push notifications To detect when a push notification is received in the foreground: diff --git a/content/in-app-ui/ios/sdk/push-notifications.mdx b/content/in-app-ui/ios/sdk/push-notifications.mdx index ed34c04bc..f439adf8b 100644 --- a/content/in-app-ui/ios/sdk/push-notifications.mdx +++ b/content/in-app-ui/ios/sdk/push-notifications.mdx @@ -4,23 +4,23 @@ description: "Usage guides to help you get started with the Push Notifications i section: SDKs --- -**Note:** We Recommend taking advantage of our [KnockAppDelegate](/in-app-ui/ios/sdk/reference#knockappdelegate) to make managing your Push Notifications simpler. +**Note:** We recommend taking advantage of our [KnockAppDelegate](/in-app-ui/ios/sdk/reference#knockappdelegate) to make managing your push notifications simpler. ## Prerequisites Before proceeding, ensure you've configured push notifications within your Knock account. For guidance on this initial setup, refer to our [Push Notification Configuration Guide](/integrations/push/overview). -## Step 1: Enabling Push Notifications in Your App +## Step 1: Enabling push notifications in your app -1. **Configure APNs in Your App:** +1. **Configure APNs in your app.** - Open your project in Xcode. - Navigate to your app target's **Signing & Capabilities** tab. - Click the "+" capability button and add **Push Notifications** to enable Apple Push Notification service (APNs). -2. **Enable Background Modes:** +2. **Enable background modes.** - Still in the **Signing & Capabilities** tab, add the **Background Modes** capability. - - Check **Remote notifications** to allow your app to receive silent push notifications. + - Check **Remote notifications** to enable your app to receive silent push notifications. -## Step 2: Registering for Push Notifications +## Step 2: Registering for push notifications Implement the following in your AppDelegate or SceneDelegate to register for push notifications: @@ -62,7 +62,7 @@ class MyAppDelegate: UIResponder, UIApplicationDelegate { } ``` -## Step 3: Updating the Message Status of a Push Notification. +## Step 3: Updating the message status of a push notification If a push notification is sent via Knock, it will contain a `knock_message_id` property that includes the corresponding message Id. This can then be used to update the message status. @@ -83,13 +83,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } ``` -## Step 4: Configuring Silent Push Notifications +## Step 4: Configuring silent push notifications Silent push notifications allow your app to update content in the background without alerting the user. Ensure that your Knock APNs message template has silent notifications enabled.