Skip to content

presentLocalNotification doesn't work #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
artemkhalygov opened this issue Apr 17, 2020 · 10 comments
Closed

presentLocalNotification doesn't work #105

artemkhalygov opened this issue Apr 17, 2020 · 10 comments

Comments

@artemkhalygov
Copy link

Could you please help me. This code not working:

PushNotificationIOS.presentLocalNotification({ alertTitle: 'test', alertBody: 'test2', })
I configured AppDelegate.m and AppDelegate.h according your instructions, but can't show any notifications in foreground. React Native v0.62.2.

@artemkhalygov artemkhalygov changed the title presentLocalNotification not working presentLocalNotification doesn't work Apr 17, 2020
@bhargav501
Copy link

I am experiencing the same issue. same react-native version :(

@Mura7
Copy link

Mura7 commented Apr 20, 2020

+1 react-native-push-notification #1371

    "react-native": "0.62.1",
    "@react-native-community/push-notification-ios": "^1.1.1",

@artemkhalygov
Copy link
Author

I downgraded "@react-native-community/push-notification-ios" to 1.1.0 and now everything work as expected.

@Mura7
Copy link

Mura7 commented Apr 21, 2020

I downgraded "@react-native-community/push-notification-ios" to 1.1.0 and now everything work as expected.

its not working for me :(

@Mura7
Copy link

Mura7 commented Apr 22, 2020

i am using firebase and its worked with upgrade to v6.4.1-alpha.0 zo0r/react-native-push-notification#1371 (comment)

@egor-a-trubnikov-panov
Copy link

I am experiencing the same issue. "@react-native-community/push-notification-ios": "^1.2.2"

@TommyLeong
Copy link

Tested with "@react-native-community/push-notification-ios": "^1.4.1" still having issue, local notification don't show.

const notification = {
        alertBody: 'Body',
        alertAction: "view",
        alertTitle: 'Title'
}

PushNotificationIOS.presentLocalNotification(notification)

@chrisbobbe
Copy link

Could this be caused by the use, here, of the deprecated method presentLocalNotificationNow (Apple doc), without any other codepath (as far as I've seen—I could be missing it!) that's meant to be executed on iOS 10+?

@Ayse-Erduran
Copy link

I am experiencing the same issue. Were you able to figure out a solution?

@Naturalclar
Copy link
Collaborator

presentLocalNotification is now deprecated. please use addNotificationRequest introduced in v1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants