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
download?
I tried its demo nice is working.. but where to download this extension?
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.
How to notify multiple users
could to help me how to notify multi users? is it possible
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.