question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

57.3 PushNotificationIOS.FetchResult.NoData incorrect configure

See original GitHub issue

Hi, since updating to 57.3, I get an error when I call finish. It says UIBackgroundFetchResultNewData should be backgroundFetchResultNewData notification.finish(PushNotificationIOS.FetchResult.NewData);

It seems like PushNotificationIOS.FetchResult.NewData has the incorrect config as when I use the following code it seems fine. notification.finish("backgroundFetchResultNewData");

Maybe this is a change with IOS?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:13

github_iconTop GitHub Comments

5reactions
ddthuan87commented, May 27, 2019

I was having same error. =((

Invalid UIBackgroundFetchResult ‘UIBackgroundFetchResultNoData’. should be one of: ( backgroundFetchResultFailed, backgroundFetchResultNewData, backgroundFetchResultNoData )

4reactions
kishanbhardacommented, Jan 13, 2020

I made following changes here push-notification-ios/js/index.js and worked perfectly.

static FetchResult: FetchResult = {
    NewData: 'UIBackgroundFetchResultNewData',
    NoData: 'UIBackgroundFetchResultNoData',
    ResultFailed: 'UIBackgroundFetchResultFailed',
  };

to

static FetchResult: FetchResult = {
    NewData: 'backgroundFetchResultNewData',
    NoData: 'backgroundFetchResultNoData',
    ResultFailed: 'backgroundFetchResultFailed',
  };
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use the react-native-push-notification.configure ... - Snyk
To help you get started, we've selected a few react-native-push-notification.configure examples, based on popular ways it is used in public projects.
Read more >
Alert is not displayed....When clicking on push notifications
My problem is when clicking on push notifications after clearing the instance of the app...In onNotification() console is printed but the alert ...
Read more >
react-native-push-notification.PushNotification.finish ... - Tabnine
... notification.finish(PushNotificationIOS.FetchResult.NoData); ... componentDidMount(){ PushNotification.configure({ onNotification: ...
Read more >
react-native-push-notification - npm
FetchResult.NoData); }, // (optional) Called when Registered Action is pressed and invokeApp is false, if true onNotification will be called ...
Read more >
Step by Step guide for Implementing Push Notifications in iOS ...
Firebase basic configuration; Create an APN certificate on Apple developer ... yarn add @react-native-community/push-notification-ios
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found