Exemplo n.º 1
0
        private void HandlePushNotification(NSDictionary userInfo)
        {
            if (userInfo == null || !userInfo.Any())
            {
                return;
            }

            Dictionary <string, string> notificationContent = new Dictionary <string, string>();

            foreach (NSObject info in userInfo.Keys)
            {
                notificationContent.Add(info as NSString, userInfo.ValueForKey(info as NSString) as NSString);
            }

            App.CurrentApp.HandleNotification(notificationContent);
        }