-
Notifications
You must be signed in to change notification settings - Fork 167
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] my app stops working after kill the app #127
Comments
Your issue comes from |
Provide the following files:
|
My Application.kt package com.ensperity.projectcoronas
import io.flutter.app.FlutterApplication
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService
import com.transistorsoft.flutter.backgroundgeolocation.FLTBackgroundGeolocationPlugin;
import com.transistorsoft.flutter.backgroundfetch.BackgroundFetchPlugin;
public class Application: FlutterApplication(), PluginRegistrantCallback {
override fun onCreate() {
super.onCreate()
BackgroundFetchPlugin.setPluginRegistrant(this)
FlutterFirebaseMessagingService.setPluginRegistrant(this)
}
override fun registerWith(registry: PluginRegistry) {
FLTBackgroundGeolocationPlugin.setPluginRegistrant(this)
FirebaseCloudMessagingPluginRegistrant.registerWith(registry)
}
} |
I asked for 2 files, including |
|
This line shows your app has been upgraded to flutter sdk <meta-data android:name="flutterEmbedding" android:value="2" /> See the Android Setup Modify your <application
+ android:name="io.flutter.app.FlutterApplication" |
i applied this changes and after that the background not worked at all |
Then you must figure out that problem. Do NOT use a custom Application.kt with Flutter sdk >= 1.12 |
I also same issue? If your problem resolved Please Can you suggest me how to solve it? |
I Ran the example application for iOS and when I kill the application, and try to open it again, the app crashes on startup. Any fixes for this? Also, please let me know if you need more details. My version is iOS 14.0 and using on IPhone XR |
If the app crashes, provided the stacktrace here. |
When launching through XCode it is okay, this only happens once you kill the app and then try to reopen it. Here are the logs from the device for the example app Incident Identifier: 61E75D87-D8DE-4A34-B2D6-86465315A518 Date/Time: 2020-07-09 07:38:48.2077 -0500 Exception Type: EXC_BAD_ACCESS (SIGKILL - CODESIGNING) Termination Reason: Namespace CODESIGNING, Code 0x2 |
Also see this that I found while googling "Termination Reason: Namespace CODESIGNING". |
The release build works! But its interesting that if I close the app in debug mode, it crashes on restart. Will see if we can find a better solution for that. Otherwise I will work with the release build for now. Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open. |
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you. |
Your Environment
flutter info
,flutter doctor
): fine no problemsMY LOGCAT
My Config
My Headless
in foreground everything is ok but when i kill the app the headless run the code faster x10
this is my headless method:
Debug logs
W/FlutterEnginePluginRegistry(11730): Attempted to register plugin (io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry$ShimRegistrarAggregate@90a06e1) but it was already registered with this FlutterEngine (io.flutter.embedding.engine.FlutterEngine@a63ac06).
Additional context
this happened after i set the switch event on my headless, then everything works fine and good but every time i killed the app the app crashed and stopped working ,
Many thanks
The text was updated successfully, but these errors were encountered: