Delphi – Handle Push Notifications when app is running?


This is how we handle them at XCode:

– (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo
NSString *message = nil;
id alert = [userInfo objectForKey:@”alert”];
if ([alert isKindOfClass:[NSString class]]) {
message = alert;
} else if ([alert isKindOfClass:[NSDictionary class]]) {
message = [alert objectForKey:@”body”];
if (alert) {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@”Title”
message:@”AThe message.” delegate:self
cancelButtonTitle:@”button 1″
otherButtonTitles:@”button”, nil];
[alertView show];
[alertView release];

How do we catch Push Notifications if the iOS application is already running at the same way but using Delphi 10 Seattle?

Comments are closed.