My Name is Kay....

DIY , 먹방 , 개발 , 육아 , 여행 좋아합니다.
AdBlock 사용시 화면이 정상적으로 노출되지 않습니다.
포스팅 관련 문의 및 개발 문의는 Email : wkzkfmxksi@gmail.com

추가 포스팅이 이뤄지지 않는 블로그입니다. 문의는 wkzkfmxksi@gmail.com 으로 연락주세요.
kay
조회 수 2020 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

서비스 종료되었습니다만...
개발자분께서 전체 운영소스를 오픈해주셨습니다.




모바일 앱을 개발하지 않아도 당신 웹사이트 회원의 스마트폰에 

무료로 푸시 알림을 보낼 수 있습니다.


http://www.pushwing.com/



파트너 목록에서 제 블로그도 보이네요..^^;;



watermarked-이미지 3.jpg




서비스 문의 및 신청



http://www.pushwing.com/main/communication


위에 주소에 접속하신 후 파트너신청 등록을 하시면 됩니다.



watermarked-이미지 4.jpg



심사 후 아래와 같이 등록완료 메일을 받았습니다.

client id , DB 접속 아이디 비번을 발급 받았습니다.


watermarked-이미지 5.jpg



제로보드 XE 기준으로 적용 시

\modules\board\board.controller.php 파일을 수정하시면 되는데요.

글 작성 시 , 댓글 작성 시

procBoardInsertDocument , procBoardInsertComment 이 두 함수를 수정하셔야 합니다.

저같은 경우에는

if(!$output->toBool()) 소스 윗 부분에 아래 소스들을 추가했습니다.



추가해야할 코드는
신규 글 작성 시 ( procBoardInsertDocument )

if (PHP_VERSION >= '5.1.0') {
//if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul");
date_default_timezone_set("Asia/Seoul");
}

$config["push_server"] = "www.pushwing.com";
$config["mysql_id"] = "디비아이디";
$config["mysql_password"] = "디비 비번";
$config["client_id"] = "클라이언트 코드";

$hp = "휴대폰번호";   // 푸시 받을 휴대폰 번호를 입력합니다.
$subject_msg = $obj->title; 
$content_msg = "블로그에 새글이 작성되었습니다. 웹사이트바로가기를 눌러주세요.";
$url = "http://블로그도메인/". $output->get('document_srl');

$idata = array(
"hp" => $hp,
"client_id" => $config["client_id"],
"subject" => $subject_msg,
"contents" => $content_msg,
"url" => $url,
"ymd" => date("ymd"),
"time" => date("H")
);

function send_pushwing($config, $idata)
{
$columns = "";
$values = "";
foreach($idata as $column => $value)
{
$columns .= $column . ", ";
$values .= ("'" . $value . "', ");
}

$con = mysql_connect($config["push_server"], $config["mysql_id"], $config["mysql_password"]);
mysql_select_db("pushwing", $con);
mysql_query("set names utf8");
mysql_query(sprintf("INSERT INTO push_wait (%s timestamp) VALUES (%s UNIX_TIMESTAMP())", $columns, $values));

mysql_close($con);
}
send_pushwing($config,$idata);


코멘트 작성 시 ( procBoardInsertComment )

if (PHP_VERSION >= '5.1.0') {
//if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul");
date_default_timezone_set("Asia/Seoul");
}

$config["push_server"] = "www.pushwing.com";
$config["mysql_id"] = "디비 아이디";
$config["mysql_password"] = "디비 비번";
$config["client_id"] = "클라이언트코드";

$hp = "휴대폰번호"; // 푸시 받을 휴대폰 번호 
$subject_msg = $obj->title;
if($subject_msg=="")
{
$subject_msg = "블로그에 새 코멘트가 작성되었습니다. 웹사이트바로가기를 눌러주세요.";
}
$content_msg = "블로그에 새 코멘트가 작성되었습니다. 웹사이트바로가기를 눌러주세요.";
$url = "http://블로그도메인/". $obj->document_srl;

$idata = array(
"hp" => $hp,
"client_id" => $config["client_id"],
"subject" => $subject_msg,
"contents" => $content_msg,
"url" => $url,
"ymd" => date("ymd"),
"time" => date("H")
);

function send_pushwing($config, $idata)
{
$columns = "";
$values = "";
foreach($idata as $column => $value)
{
$columns .= $column . ", ";
$values .= ("'" . $value . "', ");
}

$con = mysql_connect($config["push_server"], $config["mysql_id"], $config["mysql_password"]);
mysql_select_db("pushwing", $con);
mysql_query("set names utf8");
mysql_query(sprintf("INSERT INTO push_wait (%s timestamp) VALUES (%s UNIX_TIMESTAMP())", $columns, $values));

mysql_close($con);
}
send_pushwing($config,$idata);




자, 소스 수정은 다 되었구요.

이제 안드로이드 스마트 폰에서 아래 어플을 설치합니다.


https://play.google.com/store/apps/details?id=com.pushwing


설정을 마치시면 아래와 같이 푸시가 옵니다.


watermarked-20150126145016757.jpg


굳이 이제 푸시서비스를 개발 하지 않아도 되겠네요..

기회가 되면 별도 만들어볼수도 있겠지만..

굳이 개인 블로그에 만들고 싶은 생각은..아직 없네요 ㅎㅎ;;


이상입니다!


?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
62 etc undefinedNo XecureExpress PlugIn 22 file kay 2014.04.04 33389
61 etc USB 메모리 정보 확인( ChipGenius ) file kay 2013.12.19 24221
60 etc 웹에서 PDF 파일 생성 kay 2013.03.08 14950
59 etc 바코드 생성 file kay 2014.06.16 12762
58 Office PowerMockup 스토리보드 작성 툴 소개 및 무료 라이센스 발급에 대해 4 file kay 2014.04.07 12445
57 etc Youtube 동영상 다운로드 2 file kay 2014.06.14 9927
56 etc 세계 국가 도시 정보 (위경도,국가도시명,코드) kay 2013.04.17 9110
55 etc 웹에서 PNG 이미지 생성하기 kay 2013.03.02 8190
54 Office 엑셀 "텍스트 나누기"로 문자열 쪼개기 4 file kay 2015.03.12 8001
53 배치파일 파일 백업 및 자동 삭제 배치파일 file kay 2013.02.01 7833
52 Office Office Timeline - 파워포인트로 타임라인 간단히 작성하기 file kay 2014.04.30 7271
51 etc 크롬 새로고침 단축키 kay 2013.06.18 7195
50 배치파일 폴더 / 파일 리스트 kay 2013.03.08 7017
49 etc Access ( *.mdb ) 비밀번호 풀기 file kay 2014.10.13 6604
48 etc DNS - SPF Record (Sender Policy Framework) kay 2013.11.28 6519
47 etc 실행파일 압축 UPX(Ultimate Packer for eXecutables) file kay 2013.08.22 6039
46 etc Process Explorer , 프로세스 탐색기 kay 2014.02.21 5767
45 Mobile 플레이 스토어 에러 서버에서 정보를 가져오는 중에 오류가 발생했습니다.[RPC-S-7 AEC-7] file kay 2015.12.17 5194
44 etc 폴더 숨김 바이러스 kay 2014.06.13 5129
43 Mobile 태블릿 및 스마트폰 안드로이드 기기 원격 제어 "모비즌" file kay 2014.08.11 5088
Board Pagination Prev 1 2 3 4 Next
/ 4