Hi! Thanks for building this amazing tool :heart: ...
# support
w
Hi! Thanks for building this amazing tool ❤️ I'm facing a problem on iOS when I'm doing this:
Copy code
builder.withEnableBackgroundMode(true)
The error message I get in xcode is this:
Copy code
Background Task 3 ("Called by *******, from -[RSApplicationLifeCycleManager applicationWillEnterForeground]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
I'm just following the docs to init the client. Running Rudder v
1.24.2
. Thanks!
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Michael, this seems like more of a warning than an error message. What is the LogLevel you are using and why don't you use the iOS SDK v2?
w
Thanks for the quick reply @shy-kite-21035! Loglevel was
RSLogLevelError
The reason I'm not using V2 is bc I'm installing the lib using Swift Package Manager, and I couldn't find any version 2! I was actually gonna ask about this as well
also, the github repo instructs you to install 1.24.1. Not sure if the docs just happens to not be updated
m
Yes that seems like a docs issue. I see that the v2 is supported in Swift. Can you move to the v2 version?
w
still getting the same error on V2.4.3, running app in release mode:
Copy code
Background Task 4 ("Called by ****, from -[RSApplicationLifeCycleManager applicationWillEnterForeground]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
Do I have to enable any background modes?
m
I am checking on this error with the team and will update you shortly.
🙌 1
Hi Michael, this was caused due to an error on our side which has been resolved. Can you try to `Reset Package Caches`⁣ and check if you are still seeing the error logs ? Also this is for V2.4.3.
w
thanks for the info @shy-kite-21035 I will try asap!