katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.02k forks source link

SIGABRT signal in IOS #351

Open KamranKawish opened 6 years ago

KamranKawish commented 6 years ago

I was testing this plugin to use with in application. I created a totally new blank application and only installed the plugin using the commands given on the page and built the application. When I run the app on simulator it gives a "Thread 1: signal SIGABR" error in the code below when I continue using debugger error changes to "EXC_BAD_INSTRUCTION". Uninstalling the plugin removes the error

int main(int argc, char* argv[]) { @autoreleasepool { int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); return retVal; } }

error is on the line with UIApplicationMain, has someone has had the same issue

ionic cli: 3.19.1 node: 7.10.1 app targeted for ios 4.5.4

I am targeting both ios and android, android seems to have no problems at all

thanapongp commented 6 years ago

Hi, I also had this problem too. But, downgrading the plugin to ~0.7.0 seems to fix the problem.

py12345 commented 6 years ago

Hi, I am facing the same issue, downgrading the plugin does not resolve the problem for me. Any update of this issue?

py12345 commented 6 years ago

Hi, I found this : https://github.com/katzer/cordova-plugin-background-mode/issues/264 Fixing this in plugin and in iOS platform solved the issue