Skip to content

Commit 8097b06

Browse files
authored
Merge pull request #973 from OneSignal/add_deviceType_to_receive_receipt
Add Device Type to report_received request.
2 parents 091a612 + 82d51d4 commit 8097b06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iOS_SDK/OneSignalSDK/Source/Requests.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ @implementation OSRequestReceiveReceipts
643643
+ (instancetype _Nonnull)withPlayerId:(NSString *)playerId notificationId:(NSString *)notificationId appId:(NSString *)appId {
644644
let request = [OSRequestReceiveReceipts new];
645645

646-
request.parameters = @{@"app_id": appId, @"player_id": playerId ?: [NSNull null]};
646+
request.parameters = @{@"app_id": appId,
647+
@"player_id": playerId ?: [NSNull null],
648+
@"device_type": @0};
647649
request.method = PUT;
648650
request.path = [NSString stringWithFormat:@"notifications/%@/report_received", notificationId];
649651

0 commit comments

Comments
 (0)