#Kii Android Push Plugin for Unity3D
This project is native plugin to receive push notification for the Unity3D.
By adding code to this project, you can customize the behavior when it receives a push notification.
+------------------------+
| |
| Google Cloud Messaging |
| |
+------------------------+
|
| 1. Push Notification from Google server
|
+-------------+---------------+---------------------------------------------------------------+
| | | |
| V | |
| +------------------------+ | +------------------+ |
| | | | 2. UnitySendMessage() | | |
| | androidpushplugin.jar | -+----------------------> | KiiPushPlugin.cs | |
| | (This project) | | | | |
| +------------------------+ | +------------------+ |
| | | |
| | | |
| | | 3. OnPushMessageReceived() |
| | | |
| | V |
| | +------------------+ |
| | | | |
| | | YourUnityCode.cs | |
| | | | |
| | +------------------+ |
| | |
+----[Native Plugin Layer]----+-----------------------[Unity Layer]---------------------------+
- Push notification is received in the Native Plugin Layer from GCM
- Native Plugin notifies KiiPushPlugin.cs using UnitySendMessage.
- KiiPushPlugin.cs notifies your code via OnPushMessageReceived event.
-
Builds this project. (classes.jar will be generated in bin directory.)
$ ant clean release
-
Renames classes.jar to androidpushplugin.jar
-
Overwrites Assets/Plugins/Android/androidpushplugin.jar by new androidpushplugin.jar.