VJVJ VJVJ - 1 year ago 90
Swift Question

Can I show "App" Would like send you notifications alert after event in iOS

I am creating an app with push notifications and facebook login. For push notifications, the alert comes when you open the app, "App" Would like send you notifications. I want to display it after facebook login.

Answer Source

You can register for push notifications from anywhere in project. In your case you have to register for push notifications after you successfully login user with Facebook. Give a call to registerToReceivePushNotification after login completes and handle delegates in AppDelegate.

Objective C:

#pragma mark - push notificaiton
    [[UIApplication sharedApplication] registerForRemoteNotifications];


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download