-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Unable to start service com.asterinet.react.bgactions.RNBackgroundActionsTask@7cf005d with Intent #237
Comments
🎉 This issue has been resolved in version 4.0.0 🎉 |
still issue persist |
able to fixed it by add this patch
|
It's working now. Thanks
…On Thu, Aug 29, 2024 at 5:03 PM ctTushar ***@***.***> wrote:
able to fixed it by add this
****
—
Reply to this email directly, view it on GitHub
<#237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5BZLLZ7PIE2D2YYVZ76ENTZT4E2HAVCNFSM6AAAAABMSGZF2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXGQ2TINBWGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
@ctTushar @saim683 @RitheanyFT @gasolin I am still experiencing crashes while sharing my screen, and this has been happening for the past four weeks. How can I resolve this issue? Please help.
2)RNBackgroundTask.java
"react-native-background-actions": "^4.0.0", |
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
/// ...
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
// ...
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="true"
android:theme="@style/AppTheme">
// ...
<service android:name="com.asterinet.react.bgactions.RNBackgroundActionsTask" android:foregroundServiceType="dataSync" />
</application>
</manifest>
In the official Android documentation below, it is written that additional processing is required for Android 14! |
java.lang.RuntimeException: Unable to start service com.asterinet.react.bgactions.RNBackgroundActionsTask@7cf005d with Intent
{ cmp=com.officermetrics/com.asterinet.react.bgactions.RNBackgroundActionsTask (has extras) }: java.lang.IllegalArgumentException: Cannot set
both FLAG_IMMUTABLE and FLAG_MUTABLE for PendingIntent
I am using the latest version of react-native-background-actions. But when my app start's after 10 seconds my app goes to crash. I am using android 14.
The text was updated successfully, but these errors were encountered: