-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from YieldStudio/bugfix/avoid-sending-more-tha…
…n-push-notif-limit-no-batched-notifications bugfix: adds tests and fix bug sending more than 100 not batched notifications
- Loading branch information
Showing
12 changed files
with
471 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace YieldStudio\LaravelExpoNotifier\Contracts; | ||
|
||
use Illuminate\Support\Collection; | ||
use YieldStudio\LaravelExpoNotifier\Dto\ExpoMessage; | ||
|
||
interface ExpoNotificationsServiceInterface | ||
{ | ||
public function __construct( | ||
string $apiUrl, | ||
string $host, | ||
ExpoPendingNotificationStorageInterface $notificationStorage, | ||
ExpoTicketStorageInterface $ticketStorage | ||
); | ||
|
||
public function notify(ExpoMessage|Collection|array $expoMessages): Collection; | ||
|
||
public function receipts(Collection|array $tokenIds): Collection; | ||
|
||
public function getNotificationChunks(): Collection; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.