Skip to content

Commit dafc56e

Browse files
committed
Merge branch 'tmp/2.2.4' into develop
2 parents b70dd09 + 5c4fa9b commit dafc56e

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=5.6",
13+
"php": ">=7.0",
1414
"aws/aws-sdk-php": "3.*"
1515
},
1616
"autoload": {

src/SA/SnsHandler.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -352,19 +352,6 @@ protected function APNS($alert, $data, $options, $identity_id = null) {
352352
$message['data']['identity_id'] = $identity_id;
353353
}
354354

355-
// start old apps compatibility
356-
$message = array_merge_recursive($message, $message['data']);
357-
$type = $message['data']['org_id'];
358-
if ( !empty($message['data']['type']) && !empty($message['data']['subtype']) ) {
359-
$type = ($message['data']['type'] ?? '') . '_' . ($message['data']['subtype'] ?? '');
360-
}
361-
$link_type = !empty($message['data']['deeplink']['data']['type']) && $message['data']['deeplink']['data']['type'] == 'url' ? 'url': null;
362-
$link_url = !empty($message['data']['deeplink']['data']['type']) && $message['data']['deeplink']['data']['type'] == 'url' ? $message['data']['deeplink']['url']: null;
363-
$message['type'] = $type;
364-
$message['link_type'] = $link_type;
365-
$message['link_url'] = $link_url;
366-
// end old apps compatibility
367-
368355
return $message;
369356
}
370357

@@ -394,18 +381,6 @@ protected function GCM($alert, $data, $options, $identity_id = null) {
394381
$type = ($message['data']['type'] ?? '') . '_' . ($message['data']['subtype'] ?? '');
395382
}
396383

397-
// start old apps compatibility
398-
$message['payload'] = [
399-
'title' => $message['notification']['title'] ?? '',
400-
'body' => $message['notification']['body'] ?? '',
401-
'org_id' => $message['data']['org_id'] ?? '',
402-
'click_action' => $message['notification']['clickAction'] ?? '',
403-
'link_type' => !empty($message['data']['deeplink']['data']['type']) && $message['data']['deeplink']['data']['type'] == 'url' ? 'url': null,
404-
'link_url' => !empty($message['data']['deeplink']['data']['type']) && $message['data']['deeplink']['data']['type'] == 'url' ? $message['data']['deeplink']['url']: null,
405-
'type' => $type,
406-
];
407-
// end old apps compatibility
408-
409384
return [
410385
'data' => $message,
411386
'priority' => 'high'

0 commit comments

Comments
 (0)