Skip to content

Commit aae6e79

Browse files
author
Javen
committed
Fix bug: all platform have not include winphone yet.
1 parent f81a19e commit aae6e79

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/cn/jpush/api/common/DeviceEnum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public enum DeviceEnum {
44

55
Android("android"),
66
IOS("ios"),
7-
MPNS("winphone");
7+
WinPhone("winphone");
88

99
private final String value;
1010

src/cn/jpush/api/examples/JPushClientExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) {
3333
}
3434

3535
private static void testSendMpnsNotificaiton() {
36-
JPushClient jpushClient = new JPushClient(masterSecret, appKey, 0, DeviceEnum.MPNS, false);
36+
JPushClient jpushClient = new JPushClient(masterSecret, appKey, 0, DeviceEnum.WinPhone, false);
3737
NotificationParams params = new NotificationParams();
3838
params.setReceiverType(ReceiverTypeEnum.REGISTRATION_ID);
3939
params.setReceiverValue(registrationID);

src/cn/jpush/api/push/PushClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public Set<DeviceEnum> getDevices() {
142142
if (this.devices.size() == 0) {
143143
this.devices.add(DeviceEnum.Android);
144144
this.devices.add(DeviceEnum.IOS);
145+
this.devices.add(DeviceEnum.WinPhone);
145146
}
146147
return this.devices;
147148
}

0 commit comments

Comments
 (0)