+(BOOL)chargeIsCanPush
{
if (iOS8){
UIUserNotificationType types = [[UIApplication sharedApplication] currentUserNotificationSettings].types;
return (types & UIRemoteNotificationTypeAlert);
}else{
UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
return (types & UIRemoteNotificationTypeAlert);
}
}