Skip to content

Commit c7dfe9e

Browse files
committed
updated readme
1 parent 8d33aa1 commit c7dfe9e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Or manual: add the latest version as dependeny to your package.json.
3939
* {auto-link} Add RNLocalNotifications.xcoderproj into your project in the Libraries folder.
4040
* {auto-link}Add the .a file on the General tab of your target under Linked Frameworks And Libraries
4141
* {auto-link}Add the .a file on the Build Phases tab of your target under Link Binary With Libraries
42-
* In the AppDelegate.m file of your xcode project add:
42+
* In the AppDelegate.m file of your xcode project add: (this will clear all notifications when you open the app)
4343
```
4444
- (void)applicationDidBecomeActive:(UIApplication *)application
4545
{
@@ -51,7 +51,7 @@ Or manual: add the latest version as dependeny to your package.json.
5151
}
5252
}
5353
```
54-
* In the AppDelegate.m file of your xcode project, in the didFinishLaunchingWithOptions function, add:
54+
* In the AppDelegate.m file of your xcode project, in the didFinishLaunchingWithOptions function, add: (ask the user to allow notifications)
5555
```
5656
if ([UIApplication instancesRespondToSelector:@selector(registerUserNotificationSettings:)]) {
5757
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeSound categories:nil]];
@@ -64,8 +64,10 @@ Or manual: add the latest version as dependeny to your package.json.
6464
```
6565
<receiver android:process=":remote" android:name="com.github.wumke.RNLocalNotifications.AlarmReceiver" android:exported="true"></receiver>
6666
```
67-
* In the MainActivity.java file of your android studio project add:
67+
* In the MainActivity.java file of your android studio project add: (this will clear all notifications when you open the app)
6868
```
69+
import android.content.Context;
70+
...
6971
@Override
7072
public void onResume() {
7173
super.onResume();

0 commit comments

Comments
 (0)