Push Notification to iOS and Android

Published 11 months ago by arantoun

Hi Everyone,

I am working on a laravel project, which is working perfectly.

We have also developed a mobile application for iOS and Android which successfully uses the Laravel platform by consuming certain APIs.

Now we have the requirement for sending push notifications to the mobile devices. (approximate number is 1000 devices).

After doing some research I have found some packages on githup that push notifications however, I found them immature and with poor documentation.

I would appreciate some advice on how to successfully send push notifications from our laravel backend to the mobile devices (application).

Do I need to buy push notification service or can this be achieved through the laravel backend?

Thanking you sincerely in advance.

Ara

danmatthews

onesignal.com

It's free, and they have plugins and packages for pretty much everything.

arantoun

Hi Dan,

thank you for your quick reply. I am having a look into it. Looks promising.

arantoun

Any more suggestions ?

danmatthews

Yeah sure, There are tonnes! But most are paid.

Google firebase: firebase.com

Pushwoosh: pushwoosh.com

arantoun

Thanks Dan

I meant, any other best practices maybe from other Laravel developers.

Regards Ara

danmatthews

Sorry dude!

Fwiw i think one good practice is sending notifications through the notification system in Laravel:

https://laravel.com/docs/5.4/notifications#specifying-delivery-channels

d3xt3r
d3xt3r
11 months ago (135,830 XP)

Do I need to buy push notification service or can this be achieved through the laravel backend?

Push notifications involve a backend which can deliver the notifications and a frontend which is configured to receive one. If you have taken care of later, former is a just a matter of making an http request. No special package required ...

arantoun

Hi d3xt3r,

Thank you for your valuable input.

I appreciate if you could elaborate more on how Laravel can push the the notifications and how the client should be configured to receive them.

I checked the link suggested above by dan (Laravel Delivery channels which does not include delivery to mobile devices).

I am interested mainly to deliver to iOS devices.

Thank you in advance Ara

eqxDev

I was looking into this, how are you linking the token to the user?

Thanks :)

danmatthews

Hey @eqxDev - i sent a POST request from the mobile device to the server with the token, then saved it in a table that also stored the user_id - that way, if the user had multiple devices, it would send notifications to each one.

Please sign in or create an account to participate in this conversation.