GithubHelp home page GithubHelp logo

wsdflink / androidpn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dannytiehui/androidpn

0.0 2.0 0.0 60 KB

An open source project to provide push notification support for Android -- a xmpp based notification server and a client tool kit.

Home Page: http://sourceforge.net/projects/androidpn/

androidpn's Introduction

ANDROIDPN-SERVER README
=======================
http://androidpn.sourceforge.net/

Push Notification Service for Android

This is an open source project to provide push notification support for Android
-- a xmpp based notification server and a client tool kit. 

更新By:[email protected]


=======v0.6.0更新后16:36 2012/4/13================

此开源项目包含三个部分:
1、Android客户端示例
2、消息推送服务器端示例(源码、jetty版本、tomcat版本)
3、项目可以直接引用的中间件


文件描述:
androidpn-client:android客户端工程源码包
androidpn-server-src:androidpn服务器端源码包
androidpn-server-bin-jetty:androidpn服务器端jetty版本
androidpn-server-bin-tomcat:androidpn服务器端tomcat版本,可直接绑定数据库(如Mysql)
apnsUnit:中间件。项目中可以直接引用来调用服务器端消息推送接口


--------------------------------------------------
开始前请准备:

androidpn-client:
1、修改res/raw/androidpn.properties配置文件
把xmppHost=127.0.0.1改成你自己的ip;模拟器设置为:10.0.2.2


androidpn-server-bin-jetty:
修改配置文件conf/config.properties
admin.console.host=10.62.1.226为服务器的ip地址


androidpn-server-bin-tomcat:
1、用到了java的spring框架
2、修改resources/jdbc.properties配置文件
3、查看WebRoot/WEB-INF/dispatcher-servlet.xml配置文件
4、访问地址为;http://127.0.0.1:8080/ 端口号为tomcat所使用的端口号


--------------------------------------------------
新功能:
androidpn-server
新添加了两个接口:
package org.androidpn.server.console.api;
UserApiController.java 用于获取用户列表,并返回json数据;
NotificationApiController.java 用户消息推送


WebRoot/WEB-INF/dispatcher-servlet.xml文件更新
添加了
/user_api.do=userapiController	
/notification_api.do=notificationapiController

为防止别人恶意用网页群发消息推送,以下可隐藏		
/index.do=filenameController
/user.do=userController
/session.do=sessionController
/notification.do=notificationController	


--------------------------------------------------
修复的BUG列表:
androidpn-client:
1、重复发送消息时,被覆盖的问题。
    用示例程序,我连续推送2条消息,无论点击哪一条,都显示最新的那条数据。(对不上号)
    例如,我先推送标题为“A”的新闻,然后再推送标题为‘B’的新闻,这个时候,客户端收到两条推送消息,分别是A、B,无论我点击A,还是B,详情页都显示B的信息



androidpn's People

Contributors

dannytiehui avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.