Notifications10ObjC icon indicating copy to clipboard operation
Notifications10ObjC copied to clipboard

registerForRemoteNotifications method should be invoked on Main Thread

Open bioffe01 opened this issue 7 years ago • 1 comments

https://github.com/ashishkakkad8/Notifications10ObjC/blob/f83482ff3b0d42a206bd79bfdaccf8cdaff4f73b/Notifications10ObjC/AppDelegate.m#L104

bioffe01 avatar Jul 27 '18 04:07 bioffe01

Use this

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

darkstarx avatar Aug 01 '18 12:08 darkstarx