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 구글 검색 등록하기 file kay 2015.01.13 660
61 etc 원격 데스크톱 연결 정보 삭제 kay 2015.03.31 828
60 Mobile Automatic Call Recorder 통화녹음 어플 리뷰 file kay 2015.09.04 992
59 etc 다음(네이트) 검색 등록하기 file kay 2015.01.13 998
58 etc NAVER Works - 회사 도메인 메일 서비스 무료로 이용하기 file kay 2015.01.15 1118
57 etc FileZilla Client 설정 내보내기 (백업하기) file kay 2015.10.14 1201
56 etc Just in Time Debugging 비활성화 file kay 2015.06.24 1239
55 Mobile 스마트폰 위치추적 ( 구글 ) file kay 2015.09.30 1303
54 etc 블로그 갈아타기 kay 2018.02.23 1313
53 Mobile Office Lens - 무료 이미지 스캔 어플 file kay 2015.12.21 1491
52 etc cmd 로 폴더 및 파일 구조를 트리로 저장하기 file kay 2015.03.12 1746
51 etc 리눅스 웹 호스팅 50% 반값 할인 프로모션 kay 2016.12.12 1796
50 etc 서버 모니터링 와탭 - whatap file kay 2015.04.29 1798
49 etc Windows 기본 프로그램 변경 ( 연결 프로그램 ) 2 file kay 2015.10.01 1878
48 etc 크롬 브라우저 DNS 캐시 확인(삭제) 방법 file kay 2017.05.24 1948
» etc 푸시윙(pushwing) 무료 푸시 알림 file kay 2015.01.26 2020
46 etc rdp wrapper library 원격 데스크톱 환경 설정 유틸리티 file kay 2017.01.17 2169
45 Office Excel 최근 문서 삭제 file kay 2014.08.11 2564
44 etc adBlock - 웹사이트에서 광고 보지 않기 file kay 2014.05.12 2724
43 etc 옵G 개통일 확인 법 kay 2013.12.06 3175
Board Pagination Prev 1 2 3 4 Next
/ 4