Skip to content

Commit

Permalink
UI for SDK v2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpsenairekar2911 committed Jan 27, 2020
1 parent aee64e8 commit e070d62
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions IncrementBadgeCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div style="width:100%">
<div style="width:50%; display:inline-block">
<p align="center">
<img align="center" width="180" height="180" alt="" src="https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/badgeCount.png">
<img align="center" width="180" height="180" alt="" src="https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/badgeCount.png">
</p>
</div>
</div>
Expand All @@ -28,37 +28,38 @@ ___

1. Click on `File` --> `New` --> `Targets` --> `Application Extension` --> `Notification Service Extension`.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/selectNotificationServiceExtension.png)
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/addNotificationServiceExtension.png)


2. Add `Product Name` and click on `Finish`.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/addNotificationServiceExtension.png)
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/selectNotificationServiceExtension.png)

___

### Step 2. Add Setup App Groups.

1 . Click on `Project` --> `Targets` --> `Your app Target` --> `Signing & Capabilities` --> `[+]` --> `App Groups`.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/appGroups.png)
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/appGroups.png)

2. In App Groups, click on `[+]` --> `Add a new container` --> `Enter group name` --> `OK`.

**Note:** Kindly, create group name using the combination of 'group' and 'App's bundle identifier' i.e `group.com.yourApp.bundleId`.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/addNewContainer.png).
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/addNewContainer.png).

3. Make sure you've selected created app group. If it is selected then it will look like below mentioned image.
3. Make sure you've selected app group which you've created earlier. If it is selected then it will look like below mentioned image.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/selectAppGroup.png).
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/selectAppGroup.png).

4. Click on `Project` --> `Targets` --> `Notification Service Extension Target` --> `Signing & Capabilities` --> [+] --> `App Groups`.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/appGroups.png)
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/appGroups.png)

5. Select the same App Group which you've created in `Your app Target`.

![Studio Guide](https://github.com/cometchat-pro/ios-swift-chat-app/blob/master/Screenshots/selectSameAppGroup.png).
![Studio Guide](https://github.com/cometchat-pro-samples/ios-swift-push-notification-app/blob/master/Screenshots/selectSameAppGroup.png).

___

Expand Down Expand Up @@ -117,4 +118,4 @@ class NotificationService: UNNotificationServiceExtension {

```

___
___

0 comments on commit e070d62

Please sign in to comment.