Skip to content

Instantly share code, notes, and snippets.

@iyasilias
iyasilias / README.md
Created August 27, 2020 08:46 — forked from dalezak/README.md
Ionic Capacitor Resources Generator
  1. Run npm install cordova-res --save-dev
  2. Create 1024x1024px icon at resources/icon.png
  3. Create 2732x2732px splash at resources/splash.png
  4. Add "resources": "cordova-res ios && cordova-res android && node scripts/resources.js" to scripts in package.json
  5. Copy resources.js file to scripts/resources.js
  6. Run sudo chmod -R 777 scripts/resources.js
  7. Run npm run resources
@iyasilias
iyasilias / gist:b1a1f9b0060dff633dd4157682c68adf
Last active August 15, 2018 06:43 — forked from rolinger/gist:d6500d65128db95f004041c2b636753a
PHP => FCM Push notification tutorial for Android and iOS
Below is a full tutorial on how to setup and use Googles Firebase push notification API for both Android and iOS. It is based on this
earlier implementation of Googles GCM method: https://gist.github.com/prime31/5675017 - FCM is the new method and GCM will eventually be
retired.
## THE BELOW METHOD IS THE NEWER FCM METHOD:
Register your app in the FCM Console: https://console.firebase.google.com (add project)
1. Click on the newly added project, in the upper left menu is the "Overview" and Gear Settings.
2. Click on the GEAR settings icon, and then on "Project Settings"
3. In the main screen, click on "Cloud Messaging"
@iyasilias
iyasilias / Ionic 3 cheat sheet.md
Created April 9, 2018 06:53 — forked from Splinter-ben/Ionic 3 cheat sheet.md
Mon Ionic 3 cheat sheet

Ionic 3 cheat sheet by Benjamin

Les commandes principales:

  • npm install -g cordova ionic #Installer Ionic
  • $ ionic info #Récupérer toutes les info
  • $ ionic start blank #Créer un projet vierge
  • $ ionic start "myApp" #Multiple choix de création de projet
  • $ ionic generate #Creation divers
  • $ ionic generate component
@iyasilias
iyasilias / Basic Structure
Created February 17, 2018 03:06 — forked from jdnichollsc/Basic Structure
Gulp Example with Ionic Framework
css/
----- ionic.app.css //Created using Gulp - Used for debugging
----- ionic.app.min.css //Created using Gulp
----- style.css
----- //More styles from libraries like tooltipster.css for example
img/
----- logo.png
----- icons/ //Example
---------- user1.png
---------- user2.png