src/Push/ParsePusher.php 1 location
|
@@ 38-43 (lines=6) @@
|
35 |
|
|
36 |
|
// Platforms & devices options |
37 |
|
$devices = $platforms_options = []; |
38 |
|
foreach ($notification->getDevices() as $platform => $data) { |
39 |
|
if (in_array($platform, $this->getSupportedPlatforms())) { |
40 |
|
$platforms_options = array_merge($platforms_options, $data['options']); |
41 |
|
$devices = array_merge($devices, $data['devices']); |
42 |
|
} |
43 |
|
} |
44 |
|
|
45 |
|
// Query the devices |
46 |
|
if (empty($options['parse_query'])) { |
src/Push/ZendApnsPusher.php 1 location
|
@@ 44-49 (lines=6) @@
|
41 |
|
|
42 |
|
// Platforms & devices options |
43 |
|
$devices = $platforms_options = []; |
44 |
|
foreach ($notification->getDevices() as $platform => $data) { |
45 |
|
if (in_array($platform, $this->getSupportedPlatforms())) { |
46 |
|
$platforms_options = array_merge($platforms_options, $data['options']); |
47 |
|
$devices = array_merge($devices, $data['devices']); |
48 |
|
} |
49 |
|
} |
50 |
|
|
51 |
|
// Push ! |
52 |
|
foreach ($devices as $device) { |
src/Push/ZendGcmPusher.php 1 location
|
@@ 50-55 (lines=6) @@
|
47 |
|
|
48 |
|
// Platforms & devices options |
49 |
|
$devices = $platforms_options = []; |
50 |
|
foreach ($notification->getDevices() as $platform => $data) { |
51 |
|
if (in_array($platform, $this->getSupportedPlatforms())) { |
52 |
|
$platforms_options = array_merge($platforms_options, $data['options']); |
53 |
|
$devices = array_merge($devices, $data['devices']); |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
// Prepare message |
58 |
|
$message = new Message(); |