push-notifications-yii

Send push notifications from your site to mobile device (Mobile app ready)
17 followers

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

Total 3 comments

#13694 report it
Ahamed Rifaideen at 2013/06/18 12:41am
How to notify multiple users

could to help me how to notify multi users? is it possible

#13511 report it
jeapie at 2013/06/03 06:24am
Ahamed Rifaideen

Dear, Ahamed. This extension is a wrapper over Jeapie API. You can download it's sources on GitHub To start send messages programmaticaly from your projects, you have to register on dashboard and get your personal User-key and Application token. With this two keys you can initialize yii extension and send messages. Please, don't forget to install and login your mobile device Jeapie app which receives and stores notifications.

Best Regards from Jeapie team.

#13510 report it
Ahamed Rifaideen at 2013/06/03 06:11am
download?

I tried its demo nice is working.. but where to download this extension?

Leave a comment

Please to leave your comment.

Create extension