Skip to content

Commit 072c762

Browse files
HostのNotificationは、iOS10以上対応とする。
1 parent 18645e9 commit 072c762

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • dConnectDevicePlugin/dConnectDeviceHost/dConnectDeviceHost/Classes

dConnectDevicePlugin/dConnectDeviceHost/dConnectDeviceHost/Classes/DPHostService.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ - (instancetype) initWithFileManager: (DConnectFileManager *) fileMgr plugin: (i
4848
[self addProfile:[DPHostFileProfile new]];
4949
[self addProfile:[DPHostMediaPlayerProfile new]];
5050
[self addProfile:[DPHostMediaStreamRecordingProfile new]];
51-
[self addProfile:[DPHostNotificationProfile new]];
51+
float iOSVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
52+
if(iOSVersion >= 10.0) {
53+
[self addProfile:[DPHostNotificationProfile new]];
54+
}
5255
[self addProfile:[DPHostPhoneProfile new]];
5356
[self addProfile:[DPHostProximityProfile new]];
5457
[self addProfile:[DPHostSettingProfile new]];

0 commit comments

Comments
 (0)