请问极光的ios推送默认的是APNs 通知 还是 应用内消息 ?
服务端用的是官网的c# sdk, 代码如下:
JPushClient client = new JPushClient(app_key, master_secret);
PushPayload pushPayload = new PushPayload();
pushPayload.platform = Platform.android_ios();
//pushPayload.audience = Audience.all();
pushPayload.audience = Audience.s_registrationId(regid);
var notification = new Notification().setAlert(content);
notification.AndroidNotification = new AndroidNotification().setTitle(title);
notification.AndroidNotification.AddExtra("alarmid", alarmid);
notification.IosNotification = new IosNotification();
notification.IosNotification.incrBadge(1);
//notification.IosNotification.AddExtra("extra_key", "extra_value");
notification.IosNotification.AddExtra("alarmid", alarmid);
pushPayload.notification = notification.Check();
client.SendPush(payload);
出现的问题是:只能在app内收到消息,app未打开时或在后台时,无法收到消息通知!!请问大拿们,这是什么情况啊??