oracle / oracle/pushiomanager-react-native

Needed add extra code to work foreground notification at iOS

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.