Skip to content
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

registerForRemoteNotifications method should be invoked on Main Thread #3

Open
bioffe01 opened this issue Jul 27, 2018 · 1 comment

Comments

@bioffe01
Copy link

[[UIApplication sharedApplication] registerForRemoteNotifications];

@darkstarx
Copy link

darkstarx commented Aug 1, 2018

Use this

	dispatch_async(dispatch_get_main_queue(), ^{
		[[UIApplication sharedApplication] registerForRemoteNotifications];
	});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants