iphone Launch Options

后端 未结 6 1099
刺人心
刺人心 2020-12-17 00:38

im not getting any launch options after a push notification; heres the code i have but non of the NSLogs seem to print in the debug area.

UILocalNotification         


        
6条回答
  •  无人及你
    2020-12-17 00:48

      (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { 
          NSLog(@"Alert message: %@",[[userInfo valueForKey:@"aps"] valueForKey:@"alert"]);
    }
    

提交回复
热议问题