Skip to content
Snippets Groups Projects
Commit 102ca2ef authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

restore default changes for notification

parent 1e87deb8
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,9 @@
<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</key>
<string>ca-app-pub-3940256099942544/4411468910</string>
<key>CLIENT_ID</key>
<string>1006878207346-9v61fspphkk57q334mq6td4p9i55dipv.apps.googleusercontent.com</string>
<string>1006878207346-t2fmp4lhu2mqd78mggonea7n9bmcgrs2.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.1006878207346-9v61fspphkk57q334mq6td4p9i55dipv</string>
<string>com.googleusercontent.apps.1006878207346-t2fmp4lhu2mqd78mggonea7n9bmcgrs2</string>
<key>API_KEY</key>
<string>AIzaSyBtDoADGTSBPirvlHEeQTz2APlMfwq3aJA</string>
<key>GCM_SENDER_ID</key>
......@@ -17,7 +17,7 @@
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.dimago.betskills</string>
<string>com.Dimago.Betskills</string>
<key>PROJECT_ID</key>
<string>betskills-145919</string>
<key>STORAGE_BUCKET</key>
......@@ -33,7 +33,7 @@
<key>IS_SIGNIN_ENABLED</key>
<true/>
<key>GOOGLE_APP_ID</key>
<string>1:1006878207346:ios:9d4e0a7669d0f086</string>
<string>1:1006878207346:ios:18d4aecbe4e1184a</string>
<key>DATABASE_URL</key>
<string>https://betskills-145919.firebaseio.com</string>
</dict>
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.dimago.betskills" version="2.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.dimago.betskills" version="2.0.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Betskills</name>
<description>
Betskills app to see predictions of football and tennis games.
......@@ -14,7 +14,7 @@
<preference name="DisallowOverscroll" value="true"/>
<preference name="SplashScreenDelay" value="5000"/>
<preference name="ShowSplashScreenSpinner" value="false"/>
<preference name="android-minSdkVersion" value="16"/>
<preference name="android-minSdkVersion" value="23"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="xwalkVersion" value="18+"/>
......@@ -40,6 +40,8 @@
<variable name="APP_NAME" value="Betskills"/>
</plugin>
<platform name="ios">
<access origin="cdvfile://*"/>
<allow-intent href="cdvfile://*"/>
<preference name="iosPersistentFileLocation" value="Library"/>
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640"/>
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750"/>
......@@ -71,8 +73,8 @@
<icon src="resources/ios/icon/icon-small@3x.png" width="87" height="87"/>
</platform>
<platform name="android">
<preference name="android-minSdkVersion" value="22"/>
<preference name="android-targetSdkVersion" value="22"/>
<preference name="android-minSdkVersion" value="23"/>
<preference name="android-targetSdkVersion" value="23"/>
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="SplashShowOnlyFirstTime" value="false"/>
<preference name="AndroidPersistentFileLocation" value="Compatibility"/>
......
......@@ -4,9 +4,6 @@
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Content-Security-Policy" content="default-src *;
style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'
'unsafe-eval'">
<title></title>
<link href="dist/project.css" rel="stylesheet">
......
......@@ -30,7 +30,7 @@
"purchase_ok": "Congratulations, your payment has been successfully made. You have now access to the selected elements."
},
"fr": {
"info_title_1": "Comment resté connecté ?",
"info_title_1": "Comment rester connecté ?",
"info_title_2": "Qui sommes-nous ?",
"info_title_3": "Comment utiliser Betskills ?",
"who_we_are_1": "Betskills a pour vocation d’allier les mathématiques et l’analyse statistique au sport. Nous avons développé un algorithme mathématique complexe qui analyse les données des dernières rencontres sportives. Notre activité se concentre principalement aujourd’hui sur le football ainsi que le tennis.",
......@@ -76,6 +76,9 @@
});
ionic.Platform.ready(function () {
if (ionic.Platform.isIOS()) {
window.FirebasePlugin.grantPermission();
}
NotificationService.registerDevice();
ionic.Platform.ready(function () {
constantConfig.uuid = window.cordova ? ionic.Platform.device().uuid : '7f4a6a40e5c87157';
......
......@@ -26,22 +26,26 @@
var device = ionic.Platform.device();
deviceData = device;
var tokenAlreadyCreated = false;
if (ionic.Platform.isIOS()) {
window.FirebasePlugin.grantPermission();
}
window.FirebasePlugin.getToken(function (token) {
deviceData = Object.assign(device, {'locale': locale, 'token': token});
tokenAlreadyCreated = true;
}, function (error) {
deviceData = Object.assign(device, {'locale': locale, 'token': 'tokenCannotBeCreated'});
});
if (!tokenAlreadyCreated) {
window.FirebasePlugin.onTokenRefresh(function (token) {
deviceData = Object.assign(device, {'locale': locale, 'token': token});
}, function (error) {
deviceData = Object.assign(device, {'locale': locale, 'token': 'tokenCannotBeCreated'});
});
}
if (typeof deviceData.token === 'undefined' || deviceData.token == null) {
deviceData.locale = locale;
deviceData.token = 'tokenCannotBeCreated';
}
} else {
//Mock deviceData
deviceData = {
......
......@@ -240,13 +240,14 @@
});
ionic.Platform.ready(function () {
self.uuid = window.cordova ? ionic.Platform.device().uuid : '7f4a6a40e5c87157';
$ionicLoading.show({
template: '<ion-spinner icon="ripple" class="spinner-assertive"></ion-spinner>',
animation: 'fade-in',
showBackdrop: true
});
self.uuid = window.cordova ? ionic.Platform.device().uuid : '7f4a6a40e5c87157';
var freePredictionsPromise = $http.get(constantConfig.apiUrl + 'predictions/football/free');
var leaguesPromise = $http.get(constantConfig.apiUrl + self.uuid + '/leagues/football');
var promises = [freePredictionsPromise, leaguesPromise];
......@@ -271,6 +272,7 @@
}).finally(function () {
$ionicLoading.hide();
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment