Skip to content
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

[Bug]: iOS setup Error #554

Open
2 of 3 tasks
rudda opened this issue Feb 10, 2025 · 3 comments
Open
2 of 3 tasks

[Bug]: iOS setup Error #554

rudda opened this issue Feb 10, 2025 · 3 comments
Labels

Comments

@rudda
Copy link

rudda commented Feb 10, 2025

Required Reading

  • Confirmed

Plugin Version

4.2.7

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

NA

Device operating-systems(s)

NA

React Native / Expo version

"react-native": "0.71.4"

What happened?

Error while running the initial setup for ios project.
While I was performing this section: https://github.com/transistorsoft/react-native-background-fetch/blob/master/docs/INSTALL-AUTO-IOS.md#backgroundfetch-appdelegate-extension the flowwing error raises:

Image

My App seams not have a AppDelegate implementation, so due this reason, I had to import the file manually.

Please, can you help me with that question ?

Plugin Code and/or Config

NA

Relevant log output

PT-BR log:
"A operação não pôde ser concluída. Background procssing task was not registered in AppDelegate didFinishLaunchingWithOptions.  See iOS Setup Guide."
@rudda rudda added the bug label Feb 10, 2025
@christocracy
Copy link
Member

My App seams not have a AppDelegate implementation, so due this reason, I had to import the file manually.

Every iOS app, pure native or otherwise, has an AppDelegate

@rudda
Copy link
Author

rudda commented Feb 10, 2025

My App seams not have a AppDelegate implementation, so due this reason, I had to import the file manually.

Every iOS app, pure native or otherwise, has an AppDelegate

You are totally right, but I also had to add the following code below

 TSBackgroundFetch.sharedInstance().didFinishLaunching()

  TSBackgroundFetch.sharedInstance().registerBGProcessingTask("react-native-background-fetch")

        TSBackgroundFetch.sharedInstance().registerBGProcessingTask("CUSTOM_TASK_ID_HERE")

and I didn't see any of these codes in the documents

@christocracy
Copy link
Member

You do not have to had anything not documented.

Show me your Info.plist

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

No branches or pull requests

2 participants