PHPackages                             laravel-notification-channels/ionic-push-notifications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. laravel-notification-channels/ionic-push-notifications

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

laravel-notification-channels/ionic-push-notifications
======================================================

Ionic Push Notifications driver

1.0.5(8y ago)2522.4k16MITPHPPHP &gt;=5.6.4

Since Aug 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/laravel-notification-channels/ionic-push-notifications)[ Packagist](https://packagist.org/packages/laravel-notification-channels/ionic-push-notifications)[ Docs](https://github.com/laravel-notification-channels/ionic-push-notifications)[ RSS](/packages/laravel-notification-channels-ionic-push-notifications/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (7)Versions (8)Used By (0)

### \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

[](#)

### Ionic Cloud, and therefore this package, was deprecated Jan 31st, 2018. See Here for details

[](#ionic-cloud-and-therefore-this-package-was-deprecated-jan-31st-2018-see-here-for-details-httpsblogionicframeworkcomsunsetting-ionic-cloud-push-and-auth)

### \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

[](#-1)

Ionic Push Notifications Channel for Laravel
============================================

[](#ionic-push-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dde5f741fda63a10a52cfde9a6439e79db0380c300d8d14d31d568ac10a40d38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f696f6e69632d707573682d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/ionic-push-notifications)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9a4ceb5a0209c1ae526afad5d8fb4f313f219b491d839e8a2c1156b8520c4c4c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f696f6e69632d707573682d6e6f74696669636174696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/ionic-push-notifications)[![Code Coverage](https://camo.githubusercontent.com/6ce1942de84d48872265c58529f59d3750502c1244beebddc56eb3e1d5c21be9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f696f6e69632d707573682d6e6f74696669636174696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/ionic-push-notifications/?branch=master)[![StyleCI](https://camo.githubusercontent.com/5872e420f0f3e1a27c2b8ac282d904a56f2e3bfb259ce8438fdfd0a47743c486/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353835343237342f736869656c64)](https://styleci.io/repos/65854274)[![SensioLabsInsight](https://camo.githubusercontent.com/f8edd43ab4acf93448291bcfe5bc4ed9a9e3320c25425eba3d6210c7e454035a/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64346334633236632d613436392d343063652d393033622d6364343964323236393337332e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/d4c4c26c-a469-40ce-903b-cd49d2269373)[![Quality Score](https://camo.githubusercontent.com/573d6d00b267960602716430e6581dd3ddf38ed3e866e09e316b1cf9a8edd0c8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f696f6e69632d707573682d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/ionic-push-notifications)[![Total Downloads](https://camo.githubusercontent.com/64363dbe48644162344298555d7ec5e22ca2fa3e99ce538b3eb093342b0e27eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f696f6e69632d707573682d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/ionic-push-notifications)

This package makes it easy to send [Ionic Push Notifications](http://docs.ionic.io/docs/push-overview) with Laravel.

Content
-------

[](#content)

- [Installation](#installation)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require laravel-notification-channels/ionic-push-notifications
```

### Setting up the Ionic Push service

[](#setting-up-the-ionic-push-service)

Add your Ionic Push Authentication Token to your `config/services.php`:

```
// config/services.php
'ionicpush' => [
    'key' => env('IONIC_PUSH_API_KEY'),
]
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\IonicPushNotifications\IonicPushChannel;
use NotificationChannels\IonicPushNotifications\IonicPushMessage;
use Illuminate\Notifications\Notification;

class FriendRequest extends Notification
{
    public function via($notifiable)
    {
        return [IonicPushChannel::class];
    }

    public function toIonicPush($notifiable)
    {
        return IonicPushMessage::create('my-security-profile')
            ->title('Your title')
            ->message('Your message')
            ->sound('ping.aiff')
            ->payload(['foo' => 'bar']);
    }
}
```

You can easily set different settings for iOS and Android individually like this...

```
use NotificationChannels\IonicPushNotifications\IonicPushChannel;
use NotificationChannels\IonicPushNotifications\IonicPushMessage;
use Illuminate\Notifications\Notification;

class FriendRequest extends Notification
{
    public function via($notifiable)
    {
        return [IonicPushChannel::class];
    }

    public function toIonicPush($notifiable)
    {
        return IonicPushMessage::create('my-security-profile')
            ->iosMessage('Your iOS message')
            ->androidMessage('Your Android message')
            ->iosSound('ping.aiff')
            ->androidSound('ping.aiff');
    }
}
```

In order to let your Notification know which device token to send to, add the `routeNotificationForIonicPush` method to your Notifiable model.

This method needs to return the device token of the user (or the Ionic Auth email address, or Ionic userID of the user). Do not forget to set the method of targeting users with `sendTo()` if necessary (see below).

```
public function routeNotificationForIonicPush()
{
    return $this->device_token;
}
```

You can also return multiple tokens to send to a group of devices the user may own

```
public function routeNotificationForIonicPush()
{
    return $this->device_tokens;
}
```

### Available Message methods

[](#available-message-methods)

- `create()`: Accepts a string value of `your-security-profile`.
- `title()`: The title of your notification (for all platforms). Can be overwritten by platform specific `title` method (see below).
- `message()`: The message content of your notification (for all platforms). Can be overwritten by platform specific `message` method (see below).
- `sound()`: The title of your notification (for all platforms). Can be overwritten by platform specific `sound` method (see below).
- `payload()`: An array of data to send with your notification. Can be overwritten by platform specific `payload` method (see below).
- `scheduled()`: Schedule a notification for future delivery. Accept `DateTime` object or a date as a string.
- `sendTo()`: Set the method of targeting users - tokens (default), user\_ids, or emails.

#### iOS specific methods

[](#ios-specific-methods)

[See here](http://legacy.docs.ionic.io/v2.0.0-beta/docs/push-sending-push#section-basic-api-usage) for full details on these methods.

- `iosMessage()`
- `iosTitle()`
- `iosBadge()`
- `iosPayload()`
- `iosSound()`
- `iosPriority()`
- `iosExpire()`
- `iosContentAvailable()`

#### Android specific methods

[](#android-specific-methods)

[See here](http://legacy.docs.ionic.io/v2.0.0-beta/docs/push-sending-push#section-basic-api-usage) for full details on these methods.

- `androidCollapseKey()`
- `androidContentAvailable()`
- `androidData()`
- `androidDelayWhileIdle()`
- `androidIcon()`
- `androidIconColor()`
- `androidMessage()`
- `androidPriority()`
- `androidSound()`
- `androidTag()`
- `androidTimeToLive()`
- `androidTitle()`

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Mark Beech](https://github.com/JayBizzle)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Recently: every ~81 days

Total

7

Last Release

3265d ago

Major Versions

0.0.1 → 1.0.02016-08-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

---

Top Contributors

[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (73 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (14 commits)")[![pavoltanuska](https://avatars.githubusercontent.com/u/4980667?v=4)](https://github.com/pavoltanuska "pavoltanuska (2 commits)")[![bfgasparin](https://avatars.githubusercontent.com/u/4076928?v=4)](https://github.com/bfgasparin "bfgasparin (1 commits)")[![fureszk](https://avatars.githubusercontent.com/u/17513572?v=4)](https://github.com/fureszk "fureszk (1 commits)")[![mtpultz](https://avatars.githubusercontent.com/u/599498?v=4)](https://github.com/mtpultz "mtpultz (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-ionic-push-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-notification-channels-ionic-push-notifications/health.svg)](https://phpackages.com/packages/laravel-notification-channels-ionic-push-notifications)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87511.3M154](/packages/spatie-laravel-health)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.7M43](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4079.9M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1613.2M11](/packages/laravel-notification-channels-microsoft-teams)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
