Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the library support sending "alert" block as string? #94

Open
lexakozakov opened this issue Jan 19, 2016 · 0 comments
Open

Does the library support sending "alert" block as string? #94

lexakozakov opened this issue Jan 19, 2016 · 0 comments
Labels

Comments

@lexakozakov
Copy link

The library always creates "ServiceAlert" object

        $alert = new ServiceAlert(
            $message->getText(),
            $message->getOption('actionLocKey'),
            $message->getOption('locKey'),
            $message->getOption('locArgs'),
            $message->getOption('launchImage'),
            $message->getOption('title'),
            $message->getOption('titleLocKey'),
            $message->getOption('titleLocArgs')
        );
       ....

        $serviceMessage = new ServiceMessage();
        $serviceMessage->setAlert($alert);

https://github.com/Ph3nol/NotificationPusher/blob/master/src/Sly/NotificationPusher/Adapter/Apns.php#L172, meanwhile $serviceMessage->setAlert() accepts string type as well.

Does the library support sending "alert" block as string?

Thank you.

@seyfer seyfer added the question label Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants