using the debugger I’ve ensured [alertView show]; is being called, but the dialog is not viewable, what else do I need to do to get it to show?
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
if( [[userInfo objectForKey:@"aps"] objectForKey:@"alert"] != NULL)
{
NSString *msg = [[userInfo objectForKey:@"aps"] objectForKey:@"alert"];
if(msg != nil) {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Usage Alert"
message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];
[alertView show];
}
}
}
Sorry everyone, this turned out to be an issue with my compiler/xCode not actually recognizing the code I had put in or something along those lines, the environment was broken.