push-notifications-yii Send push notifications from your site to mobile device (Mobile app ready)

  1. Requirements
  2. Usage
  3. Resources

Jeapie is a mobile app that receives native push notifications and stores them in feed. Jeapie-yii extension allows you to send native mobile PUSH notifications programmaticaly via Jeapie scripting API

Sign up Jeapie and create your notification provider (get your API token) - http://dashboard.jeapie.com You can invite users to subscribe on your provider. Install Jeapie mobile app and login. You can send demo-message from application dashboard. Having API token you can send messages from Yii.

Requirements

  • Yii 1.1 or above;
  • curl enabled;

Usage

Configuration

'import'=>array(
      ...
    'application.extentions.Jeapie.*'
      ...
),

     ....

'components'=>array(
     ...
    'Jeapie' => array(
        'class' => 'ext.Jeapie.PushMessageComponent',
        'configs' => array(        //optional parameter
            'token' => 'userToken',
            'title' => 'title',
            'message' => 'message',
            'priority' => 0,
        ),
    ),
      ...

Sending message

// to yourself
Yii::app()->Jeapie
    ->setToken('tokenKey')          // require
    ->setTitle('titleOfMessage')    // not require
    ->setMessage('bodyOfMessage')   // require
    ->setPriority(0)                // not require. can be -1, 0, 1
    ->disableSslVerification()      // optional
    ->personalSend();                       // return true or false

// to subscriber of your provider
Yii::app()->Jeapie
    ->setEmails(array('login@exmple.com'))       // require for users send
    ->sendUsers();                   // return true or false

// to all subscribers of your provider

Yii::app()->Jeapie
    ->broadcastSend();               // return true or false

Resources

7 0
17 followers
482 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Web Service
Developed by: jeapie
Created on: May 29, 2013
Last updated: 8 years ago

Downloads

show all

Related Extensions