Update installation.android.md
This commit is contained in:
parent
a1a7653d4a
commit
11052bbb6f
|
@ -66,7 +66,7 @@ project(':react-native-firebase').projectDir = new File(rootProject.projectDir,
|
||||||
If you plan on using [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/), add the following to `android/app/src/main/AndroidManifest.xml`.
|
If you plan on using [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/), add the following to `android/app/src/main/AndroidManifest.xml`.
|
||||||
|
|
||||||
Add permissions:
|
Add permissions:
|
||||||
```
|
```xml
|
||||||
<manifest ...>
|
<manifest ...>
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||||
|
@ -74,7 +74,7 @@ Add permissions:
|
||||||
```
|
```
|
||||||
|
|
||||||
Set app [launch mode](https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en) inside application props:
|
Set app [launch mode](https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en) inside application props:
|
||||||
```
|
```xml
|
||||||
<application
|
<application
|
||||||
...
|
...
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
|
@ -82,7 +82,7 @@ Set app [launch mode](https://inthecheesefactory.com/blog/understand-android-act
|
||||||
```
|
```
|
||||||
|
|
||||||
Add messaging service:
|
Add messaging service:
|
||||||
```
|
```xml
|
||||||
<application ...>
|
<application ...>
|
||||||
<service
|
<service
|
||||||
android:name="io.invertase.firebase.messaging.MessagingService"
|
android:name="io.invertase.firebase.messaging.MessagingService"
|
||||||
|
@ -100,7 +100,7 @@ Add messaging service:
|
||||||
```
|
```
|
||||||
|
|
||||||
If you would like to schedule local notifications then you also need to add the following:
|
If you would like to schedule local notifications then you also need to add the following:
|
||||||
```
|
```xml
|
||||||
<receiver android:name="io.invertase.firebase.messaging.RNFirebaseLocalMessagingPublisher"/>
|
<receiver android:name="io.invertase.firebase.messaging.RNFirebaseLocalMessagingPublisher"/>
|
||||||
<receiver android:enabled="true" android:exported="true"android:name="io.invertase.firebase.messaging.RNFirebaseSystemBootEventReceiver">
|
<receiver android:enabled="true" android:exported="true"android:name="io.invertase.firebase.messaging.RNFirebaseSystemBootEventReceiver">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
Loading…
Reference in New Issue