This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== INSTALLATION ===== | |
Install the Cordova and Ionic Native plugins: | |
$ ionic cordova plugin add phonegap-plugin-push | |
$ npm install --save @ionic-native/push | |
*docs | |
https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/ | |
*tested versions: | |
"cordova-android": "7.1.1", (required > 7.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*docs | |
https://github.com/jeduan/cordova-plugin-facebook4 | |
===== CREATE APP ====== | |
https://developers.facebook.com | |
===== INSTALLATION ===== | |
Install the Cordova and Ionic Native plugins: | |
$ ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication" | |
$ npm install @ionic-native/facebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"rulesDirectory": [ | |
"node_modules/codelyzer" | |
], | |
"rules": { | |
"arrow-return-shorthand": true, | |
"callable-types": true, | |
"class-name": true, | |
"comment-format": [ | |
true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { ActionSheetController, normalizeURL, Platform } from 'ionic-angular'; | |
import { File, FileEntry, IFile } from '@ionic-native/file'; | |
import { Crop } from '@ionic-native/crop'; | |
import { Camera, CameraOptions } from '@ionic-native/camera'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
import { IOSFilePicker } from '@ionic-native/file-picker'; | |
export interface ImageData { | |
imagePath: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('native.keyboardshow', function () { | |
/* | |
* This code is a hack to fix the cursor issue. | |
*/ | |
if (document.activeElement.nodeName === 'INPUT') { | |
setTimeout(function (){ | |
document.activeElement.setAttribute('disabled', 'true'); | |
setTimeout(function () { | |
document.activeElement.setAttribute('disabled', ''); | |
}, 10); |