react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Repeating notification is not working on IOS

Open rodrigowpl opened this issue 7 years ago • 9 comments

Repeating notification don't working on IOS

Here is my code

PushNotification.localNotificationSchedule({
  message: 'test',
  date: ...,
  repeatType: 'time',
  repeatTime 120000 // 2 minutes
})

On Android it works normally. But on IOS only the first notification is received.

I already see another issues about that. But I don't understand If was resolved or not.

Any idea?

rodrigowpl avatar Jan 05 '19 09:01 rodrigowpl

@rodrigowpl This issue is also affecting me. Same description, I see the first notification, but none of the repetitions.

Same code works perfectly for Android.

ryanpatk avatar Feb 19 '19 17:02 ryanpatk

Same here, plus setup with repeatType (doesn't matter on value of repeatType)

PushNotification.localNotification({ message: 'test', repeatType: 'minute', }) on android cause infinite loop of notifications. localNotificationSchedule works correctly on android.

I try it on example project.

Johny8811 avatar Feb 20 '19 21:02 Johny8811

The problem can be caused, because from react native itself the PushNotificationIOS doesn't support repeatType "time". https://facebook.github.io/react-native/docs/pushnotificationios see under scheduleLocalNotification => repeatInterval

apppro123 avatar Apr 26 '19 15:04 apppro123

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 21 '20 00:05 github-actions[bot]

any solution?

daheeahn avatar May 21 '20 12:05 daheeahn

Is this repository active? most of sensitive issues are stale or closed by bot...

bostnis avatar Jun 11 '21 07:06 bostnis

Hi @bostnis All staled / closed issues by bot are inactive for at least a year. If it's important, this should be active and with reproducible project. Most of issue are duplicated because no one search in history. And I don't have time to look 500 issues where there is no informations and outdated version.

Dallas62 avatar Jun 11 '21 07:06 Dallas62

@bostnis Also, if you read the readme, this issue is not related to this repository but the iOS one. Then repeatTime is an Android-Only feature because it's not possible to do it on iOS SDK. Regards

Dallas62 avatar Jun 11 '21 07:06 Dallas62

Hi @Dallas62 Thanks for the response. Currently I am struggling with ios issue.. repeatType: 'day' not working on ios apps and I checked most of issues posted here but couldn't find good solution yet. If I made you confused, sorry for that.

Regards

bostnis avatar Jun 11 '21 07:06 bostnis