-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iOS 11 + xcode 9: warnings on calling UI methods from a background thread #1988
Comments
Same here:
|
Currently fixed in master, soon to be in release 2.1.0. |
cli packages:
global packages:
local packages:
System:
phonegap-plugin-push version: 2.0.0 @ionic-native/push version: 4.3.2 When I build the app in Xcode Version 9.0.1 (9A1004), I get this: |
@hsob did you pull from master or grab the plugin from npm? |
from npm by executing these commands : ionic cordova plugin add phonegap-plugin-push npm install --save @ionic-native/push |
npm install --save @ionic-native/push |
so, read latest comments, it's fixed on master, but not released yet. Will be on the next release (2.1.0) |
Cool, so when do you expect to update it? thanks, |
@hsob by the end of the week |
Hi @macdonst, Thanks for releasing 2.1.0, however there is some issue when trying to install on latest Ionic and Cordova. Please see attached screen. I am on [email protected], [email protected], [email protected] |
@unostella do you have cocoapods installed? |
@macdonst Hi Simon, I've got latest [email protected]. Below is what I am seeing when I try to build ios despite getting error above (on installing [email protected]) |
Have had the same issue here. Calling "pod repo update" after updating cocoapods did the trick :-) |
Unfortunately, I now have another problem: Plugin doesn't support this project's cordova version. cordova: 7.0.1, failed version requirement: >=7.1.0 But indeed I have cordova 7.1.0 (cordova -v shows that). Do I have to do something else to get it working? |
@macdonst @Defcon0 It works for me, I forgot to add Firebase as I was using v1.10.5 that didn't require it https://ionicframework.com/docs/native/firebase/ |
@macdonst: ??? Should we now don‘t use the workspace anymore? |
I can't explain why:
The plugin works as expected in version 1.8.x, but in versions 2.x.x I have this strange feature. I didn't add "GoogleService-Info.plist" in my project, is it the cause? Can you please help me? Thanks, |
@hsob I guess you need to create a new issue for that :-) |
Has v2.1.0 been released? I've just installed via cordova plugin add phonegap-plugin-push and I have v2.0.0. |
I'm using the version 2.1.2 but I'm having the same issue with Xcode System information: I'm building selecting the file |
I have a question.. Do any of you think Apple would reject if we submit the app with these warnings? Main Thread Checker: UI API called on a background thread: -[UIApplication registerUserNotificationSettings:] I'm using both Local and Push Plugins
|
@tattivitorino I haven't upgraded the plugin yet (I am a little busy and don't have the time to do the re-tests), and my updates haven't been rejected yet! |
@shankari, good to hear that! I am about to submit and I really dont have time to upgrade and test this right now! thank you so much! |
@tattivitorino did your app get accepted ok despite those warnings? |
hi @richardshergold I haven't submitted yet. My client had a few problems and we're still waiting! |
I have plugin version 2.2.2. |
This thread has been automatically locked. |
Expected Behaviour
There should be no warnings generated from the plugin
Actual Behaviour
Warnings about calling UI methods from the background thread - e.g.
Reproduce Scenario (including but not limited to)
All the time
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 11
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
N/A
Sample Code that illustrates the problem
In
www/js/app.js
,.config
Logs taken while reproducing problem
text_logs_warning_background_ui.log.gz
The text was updated successfully, but these errors were encountered: