Skip to content

Commit c7513fc

Browse files
authored
Update README.md
1 parent 583598d commit c7513fc

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ React Native module to support Azure Notification Hub push notifications on Andr
55
# Installation
66

77
```
8-
npm isntall react-native-azurenotificationhub
8+
npm install react-native-azurenotificationhub
99
```
1010

1111
## Set up Azure Notification Hub
@@ -22,6 +22,25 @@ npm isntall react-native-azurenotificationhub
2222

2323
## Android Installation
2424

25+
### Register app with Notification Hub
26+
27+
* Log in to the [Firebase console](https://firebase.google.com/console/) and create a new Firebase project if you don't already have one.
28+
* After your project is created click **Add Firebase to your Android app** and folow the instructions provided.
29+
30+
![Add Firebase to Android](./img/AddFirebaseToAndroid.png).
31+
32+
* In the Firebase Console, click the cog for your project and then click **Project Settings**
33+
34+
![Firebase Project Settings](./img/FirebaseProjectSettings.png)
35+
36+
* Click the **Cloud Messaging** tab in your project settings and copy the value of the **Server key** and **Sender ID**. The former will be used to configure the Notification Hub Access Policy and and the latter for your React Native module registration.
37+
38+
* Back on the [Azure Portal](https://portal.azure.com) page for your notification hub, select **Settings > Notification Services > Google (GCM)**. Enter the FCM **Server key** you copied from the [Firebase console](https://firebase.google.com/console/) and click **Save**.
39+
40+
![Configure GCM](./img/ConfigureGCM.png)
41+
42+
### Export React Native Module from app
43+
2544
Coming soon.
2645

2746
## Windows Installation
@@ -47,6 +66,8 @@ Coming soon.
4766

4867
* Back on the [Azure Portal](https://portal.azure.com) page for your notification hub, select **Settings > Notification Services > Windows (WNS)**. Then enter the **Application Secret** password in the Security Key field. Enter your **Package SID** value that you obtained from WNS in the previous section, and then click **Save**.
4968

69+
![Configure WNS](./img/ConfigureWNS.png)
70+
5071
### Export React Native Module from app
5172

5273
* In Solution Explorer of your open .sln in Visual Studio 2015, right-click the Solution, click **Add > Existing Project...**.

0 commit comments

Comments
 (0)