You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing this error in the Xcode console Main Thread Checker: UI API called on a background thread: -[UIApplication setApplicationIconBadgeNumber:]
It looks like my Cordova app hangs for ~5 seconds with a blank white screen because of it and then I see the prompt to allow push notifications. Curious if others are seeing the same thing. Is this caused by an underlying dependency?
The text was updated successfully, but these errors were encountered:
I'm actually having the same issue.
Since it doesn't stop the notifications from working I haven't paid much attention to it.
Any idea on what's going on?
The solution is to remove clearBadge:true from the Configure because the configure, in phonegap-plugin-push, is run in a background thread and newer iOS versions don't seem to appreciate it very much.
We must then run it manually from our code:
CordovaPush.push.setApplicationIconBadgeNumber(
function () {console.log('setApplicationIconBadgeNumber2(0) successcallback');},
function () {console.log('setApplicationIconBadgeNumber2(0) errorcallback');}, 0);
Seeing this error in the Xcode console
Main Thread Checker: UI API called on a background thread: -[UIApplication setApplicationIconBadgeNumber:]
It looks like my Cordova app hangs for ~5 seconds with a blank white screen because of it and then I see the prompt to allow push notifications. Curious if others are seeing the same thing. Is this caused by an underlying dependency?
The text was updated successfully, but these errors were encountered: