Skip to content

Commit 7961754

Browse files
committed
react-native-push-notification
1 parent f9e98e8 commit 7961754

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150

151151
**iOS 🍏**
152152
1. At the bottom of your `Info.plist` insert a key for `CFBundleIcons`
153+
- Note: For iPad, you need to add the key `CFBundleIcons~ipad`
153154
2. Within this dictionary add another key for `CFBundleAlternateIcons`
154155
3. Finally then within this dictionary you can add in the keys for you new icons
155156
- The `key` is the name you will reference from within code.
@@ -201,4 +202,21 @@ getIcon();
201202
resetIcon();
202203
```
203204

204-
> All functions are typed and return a promise that either resolves successfully, or will reject with the error that has occurred.
205+
> All functions are typed and return a promise that either resolves successfully, or will reject with the error that has occurred.
206+
207+
**react-native-push-notification**
208+
209+
When using `react-native-push-notification`, notifications won't work as we are using `activity-alias`.
210+
211+
To fix this, you need to create a Java file for each of the `activity-alias` in your `AndroidManifest.xml`.
212+
213+
The file should be placed alongside you `MainActivity.java`. Example:
214+
```
215+
android/app/src/main/java/com/myapp/MainActivity<KEY>.java
216+
```
217+
The content of this file should be:
218+
```
219+
package com.myapp;
220+
public class MainActivity<KEY> extends MainActivity {}
221+
```
222+
Replace `<KEY>` with the icon name used in the manifest. Replace com.myapp with your android app structure.

0 commit comments

Comments
 (0)