oracle / oracle/pushiomanager-react-native
Needed add extra code to work foreground notification at iOS
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 19
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
For foreground work correct at iOS I need do this changes on AppDelegate.h:
#import <UserNotifications/UserNotifications.h>
and
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>
On AppDelegate.m:
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
center.delegate = self;
[PushIOManager sharedInstance].notificationPresentationOptions = UNNotificationPresentationOptionAlert|UNNotificationPresentationOptionSound|UNNotificationPresentationOptionBadge;
at the end add UserNotifications.framework under Linked Frameworks and Libraries
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AppDelegate.h and AppDelegate.m, then inspect the iOS project’s Linked Frameworks and Libraries section. Confirm the UserNotifications import, delegate configuration, notification presentation options, and UserNotifications.framework entry; done means foreground notifications display with alert, sound, and badge on iOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 30/100