모바일/CORDOVA
cordova-plugin-local-notifications
죠부니
2017. 11. 27. 12:40
반응형
cordova-plugin-local-notifications
NPM : https://www.npmjs.com/package/de.appplant.cordova.plugin.local-notification
GIT : https://github.com/katzer/cordova-plugin-local-notifications
특정 시간을 지정해서 로컬로 알림을 띄우기 위해서 사용
첫번째로 플러그인을 추가한다.
코르도바로 작성된 프로젝트 경로명으로 이동한 후
cordova plugin add cordova-plugin-local-notification
을 입력한다.
일단 베이직을 실행해서 테스트
cordova.plugins.notification.local.schedule({ title: 'My first notification', text: 'Thats pretty easy...', foreground: true });
에뮬레이터 실행시 작동확인 완료
추가 참고사이트
https://www.sitepoint.com/integrating-local-notifications-in-cordova-apps/
반응형