php 코드 $file_path = "./"; $file_name = $_GET['file_name']; $filesize =filesize("$file_path.$file_name"); if( !file_exists( $file_path ) ) { echo "경로가 잘못되었습니다."; } else{ header("Content-Type: image/jpeg"); // 이 부분 jpg를 jpeg로 수정함 header("Content-length: {$filesize}"); header("Content-Disposition: inline; filename={$file_name}"); readfile($file_path.$file_name); } 네이버 원 $(".btn_copyImg").click(func..
https://firebase.google.com/docs/cloud-messaging/ios/send-image?hl=ko 1. XCODE FILE → NEW → TARGET →NOTIFICATION SERVICE EXTENSION 추가(objective-c) 2. 생성한 extension의 NotificationService.m 수정 3. didReceiveNotificationRequest의 SELF.contentHandler 대신 [FIRMessaging exensionHelper]로 변경 (FIREBASE document 참고) 4. cocoapods으로 EXTENSION에 FIREBASE/MESSAGING 설치 5. NotificationService.m에 FIREBASE IMPORT 추가 c..
1. 클라이언트 js코드 - (document ready일 경우에 호출될 수 있도록 하기) document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { // Cordova is now initialized. Have fun! console.log('Running cordova-' + cordova.platformId + '@' + cordova.version); document.getElementById('deviceready').classList.add('ready'); const push = PushNotification.init({ android: { }, browser: { pushServiceU..
1 프로젝트 생성 cordova create psh3 p.p.com psh3 2 플랫폼 & 플러그인 cordova platform add android cordova plugin add @havesource/cordova-plugin-push 3 파이어베이스 프로젝트 생성 -> google-services.json 다운로드 4 프로젝트 루트경로에 google-services.json 5 config.xml 6 빌드 cordova build
원본 https://bundw.tistory.com/65 Cordova(코르도바) Hosted WebApp에서 Plugin 연동하기 https://bundw.tistory.com/64 Cordova(코르도바) Hybrid Hosted WebApp(하이브리드 웹앱) 베이스 만들기 이미 모바일 홈페이지가 있으며 앱으로 씌워서 스토어에 올리고자 할 경우, 웹앱의 기본이 되는 프로젝트 bundw.tistory.com 백업용 프로젝트의 www/js 폴더에 host.js 파일을 생성하고 아래 내용을 추가합니다. var app = { initialize: function() { this.bindEvents(); }, bindEvents: function() { document.addEventListener('devi..
참고자료 https://bundw.tistory.com/66 Cordova(코르도바) 실행 로딩화면 Splashscreen(스플래시 스크린) 적용 Cordova의 Splashscreen는 Native App과 마찬가지로 Portrait(세로)와 Landscape(가로)를 지원합니다. 그리고 해상도 별로 각 다른 크기의 이미지를 지정해야 합니다. Android는 Portrait와 Landscape별로 이미지.. bundw.tistory.com 1. 스플래시 이미지 준비 / 경로 - land는 가로화면용 - port는 세로화면용 (없어도됨) config.xml - 스플래시 이미지 경로 config.xml - 스플래시 설정 SplashScreen : 스플래시 사용 AutoHideSplashScreen : 자동..
구글스토어 상단 이미지 휴대폰 스샷 이미지 레거시 아이콘 ldpi : 36 x 36px mdpi : 48px*48px hdpi : 72px * 72px xhdpi : 96px * 96px xxhdpi : 144px * 144px xxxhdpi : 192px * 192px +구글스토어용 512*512px 적응형 아이콘 mdpi : 108px*108px hdpi : 162px * 162px xhdpi : 216px * 216px xxhdpi : 324px * 324px
https://curl.trillworks.com/#node
https://stackoverflow.com/questions/56766035/how-to-implement-pull-to-refresh-on-existing-hybrid-app-built-using-cordova
상위로 몇개만 내림차순 정렬 du -h --max-depth=1 /var/log | sort -hr 참고 https://superuser.com/questions/1596021/what-is-dev-ploop15234p1-on-my-vps
에러코드 fcm The "chunk" argument must be of type string or an instance of Buffer or Uint8Array 해결방법 // change var strings = fs.readFileSync("platforms/android/res/values/strings.xml").toString(); // to var strings = fs.readFileSync("platforms/android/app/src/main/res/values/strings.xml").toString(); // AND //change fs.writeFileSync("platforms/android/res/values/strings.xml", strings); //to fs.write..