You need to configure the application to get the type of PN that you want to accept, there are three options:
- Display a short text message
- Play short sound
- Set the number in the icon on the application icon
You can use these three in any combination that you consider necessary, now all you need to do in your application is register the RemoteNotificationTypes types as follows:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible];
Choose the appropriate option in your case, as soon as the application starts and registers for push notifications, a message appears asking the user whether to accept push push notifications.
Klodo source share