petermetz / cordova-plugin-ibeacon

An iBeacon plugin for Phonegap / Cordova 3.x and upwards. Supports both iOS and Android (contributions are welcome)
Apache License 2.0
726 stars 373 forks source link

-[UIApplication presentLocalNotificationNow:] must be used from main thread only #386

Open joeldhenry opened 6 years ago

joeldhenry commented 6 years ago

Expected behavior and actual behavior when enabling debug notifications i expect to receive notifications but do not and in xcode i get -[UIApplication presentLocalNotificationNow:] must be used from main thread only

Steps to reproduce the problem cordova.plugins.locationManager.enableDebugNotifications();

cordova-ios version 4.5.4

cordova-plugin-ibeacon version 3.6.1

device model and os version iPhone X iOS 11

petermetz commented 6 years ago

@joeldhenry Seems like one of those constraints that iOS introduced over time. It's not really a bug in the plugin but I believe we can fix it anyway. Thank you for the report.

joeldhenry commented 6 years ago

thanks @petermetz!