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

Use multiple certificates #52

Closed
PauBenetPrat opened this issue Feb 1, 2019 · 5 comments
Closed

Use multiple certificates #52

PauBenetPrat opened this issue Feb 1, 2019 · 5 comments

Comments

@PauBenetPrat
Copy link

Hi,
I'd like to use diferent certificates with your package. Is there any way to achieve this?

I'm using one normal notification certificate and I want to add a passKit certificate to notify iOS wallet for updates. It can not be the same...

@dwightwatson
Copy link
Collaborator

No, we don't support that functionality currently. Open to PRs that would want to implement it however.

@PauBenetPrat
Copy link
Author

At the end, I temporary setup an specific certificate before sending my custom notification.
The is no need for PR. Thanks!

        Config::set('broadcasting.connections.apn', [
            'environment' => 1,
            'certificate' => self::getApnCertificatePath($passType),
            'pass_phrase' => null, // Optional passPhrase
        ]);
        (new ApnServiceProvider(app()))->boot();

@dwightwatson
Copy link
Collaborator

Following in the footsteps of Laravel's Nexmo channel's approach to this problem I've added a via method on the message that allows you to pass in a custom Pushok\Client configured to your needs.

@BadChoice
Copy link
Contributor

👏 👏
Thank you!

@RoduanKD
Copy link

Hello @PauBenetPrat ,
I'm implementing this channel to send updates to apple wallet also. can you show me exactly how did you do it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants