ionic2 Messaging Push

簡單來說: getDeviceToken 方法有三: 一、ionic Native Push (https://ionicframework.com/docs/v2/native/push/) 二、ionic Native Firebase (https://ionicframework.com/docs/v2/native/firebase/) 三、cordova FCM plugin (https://github.com/fechanique/cordova-plugin-fcm) 之前試用的方式是: http://sueboy.blogspot.tw/2017/01/ionic2-fcm-send-message-to-device-token.html .AngularFire2 authstate.auth.getToken() is JWT token for firebase

繼續閱讀

https://github.com/driftyco/ionic/issues/6776#issuecomment-267961514 https://github.com/driftyco/ionic-app-scripts/issues/596 This problem…. just update >> ionic info Ionic Framework Ionic CLI Ionic App Lib Ionic App Scripts Cordova CLI: 6.5.0 Ionic Framework Version: 2.0.1 Ionic CLI Version: 2.2.1 Ionic App Lib Version: 2.2.0 Ionic App Scripts Version: 1.0.1 So 1、npm update to best new npm update -g 2、uninstall ionic npm uninstall ionic 3、install ionic npm install -g ionic 4、update package.js in project npm install -g npm-check-updates

繼續閱讀

https://gxiangco.gitbooks.io/m3-app-dev/content/part4/%E6%9B%B4%E6%8F%9Bicons%E5%8F%8Asplashscreen.html 1、 change resource icon.png and splash.png 2、ionic resources 3、check resource android and ios images is changed ? 4、apk 4.1、 ionic platform remove android then ionic platform add android or 4.2、 ionic build android copy res android and ios images to platform/android or ios inside

繼續閱讀

https://ionicframework.com/docs/v2/native/photo-viewer/ follow step just do. Now focus https://github.com/sarriaroman/photoviewer/issues/11 ps: declare var cordova: any; ps2: cordova plugin add cordova-plugin-file www/assets/img is ionic2 now version, maybe future change, but now this is correct  showImage(imageUrl) { if (this.platform.is(‘cordova’) && this.platform.is(‘android’)) { File.readAsDataURL(cordova.file.applicationDirectory + “www/assets/img/”, imageUrl) .then((dataURL:string) => { PhotoViewer.show(dataURL, “”, {share: false}) }) .catch( (err)=>{alert(“err: “+err) }); } else if (this.platform.is(‘cordova’) && this.platform.is(‘ios’)) { PhotoViewer.show(cordova.file.applicationDirectory + “www/assets/img/"+imageUrl); } } https://github.com/apache/cordova-plugin-file

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan