Skip to content

Commit 3e64091

Browse files
committed
feat(react-native): Add push notification docs
1 parent add5386 commit 3e64091

File tree

61 files changed

+875
-536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+875
-536
lines changed
56.7 KB
Loading
51.7 KB
Loading
71.7 KB
Loading
526 KB
Loading
230 KB
Loading
112 KB
Loading
175 KB
Loading
92.8 KB
Loading

src/directory/directory.mjs

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,6 @@ export const directory = {
648648
'push-notifications': {
649649
title: 'Push Notifications',
650650
items: [
651-
{
652-
title: 'Overview',
653-
route: '/lib/push-notifications/overview',
654-
filters: ['react-native']
655-
},
656651
{
657652
title: 'Getting started',
658653
route: '/lib/push-notifications/getting-started',
@@ -668,14 +663,29 @@ export const directory = {
668663
route: '/lib/push-notifications/record-notifications',
669664
filters: ['ios']
670665
},
666+
{
667+
title: 'Request permissions',
668+
route: '/lib/push-notifications/request-permissions',
669+
filters: ['react-native']
670+
},
671+
{
672+
title: 'Interact with notifications',
673+
route: '/lib/push-notifications/interact-with-notifications',
674+
filters: ['react-native']
675+
},
671676
{
672677
title: 'Identify user',
673678
route: '/lib/push-notifications/identify-user',
674-
filters: ['android', 'ios']
679+
filters: ['android', 'ios', 'react-native']
680+
},
681+
{
682+
title: 'App badge count',
683+
route: '/lib/push-notifications/app-badge-count',
684+
filters: ['react-native']
675685
},
676686
{
677-
title: 'Working with API',
678-
route: '/lib/push-notifications/working-with-api',
687+
title: 'Enable rich notifications',
688+
route: '/lib/push-notifications/enable-rich-notifications',
679689
filters: ['react-native']
680690
},
681691
{
@@ -691,7 +701,7 @@ export const directory = {
691701
{
692702
title: 'Setting up push notification services',
693703
route: '/lib/push-notifications/setup-push-service',
694-
filters: ['android', 'ios']
704+
filters: ['android', 'ios', 'react-native']
695705
}
696706
]
697707
},

src/fragments/lib/push-notifications/android/getting_started/10_pre_req.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
* An Android application targeting at least Android SDK API level 24 with Amplify libraries integrated
2-
* For a full example of creating Android project, please follow the [project setup walkthrough](/lib/project-setup/create-application)
1+
- An Android application targeting at least Android SDK API level 24 with Amplify libraries integrated
2+
- For a full example of creating Android project, please follow the [project setup walkthrough](/lib/project-setup/create-application)
33

4+
import fcmPreReq from '/src/fragments/lib/push-notifications/android/getting_started/fcm-pre-req.mdx';
45

5-
Push Notifications are delivered via Firebase Cloud Messaging (FCM), In order to use FCM, you need to register your app on the Firebase console. See [Setting up push notification services](/lib/push-notifications/setup-push-service/) for more information.
6+
<Fragments fragments={{ android: fcmPreReq }} />
67

78
## Request Permissions
89

0 commit comments

Comments
 (0)