mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Direct Update working
This commit is contained in:
+3
-3
@@ -101,14 +101,14 @@
|
||||
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
|
||||
<mfp:android>
|
||||
<mfp:sdkChecksum>1109370933</mfp:sdkChecksum>
|
||||
<mfp:appChecksum>2995684404</mfp:appChecksum>
|
||||
<mfp:appChecksum>2677140979</mfp:appChecksum>
|
||||
<mfp:security>
|
||||
<mfp:testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3" />
|
||||
</mfp:security>
|
||||
</mfp:android>
|
||||
<mfp:ios>
|
||||
<mfp:sdkChecksum>246097737</mfp:sdkChecksum>
|
||||
<mfp:appChecksum>2366819154</mfp:appChecksum>
|
||||
<mfp:appChecksum>624868211</mfp:appChecksum>
|
||||
<mfp:security>
|
||||
<mfp:testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3" />
|
||||
</mfp:security>
|
||||
@@ -136,7 +136,7 @@
|
||||
</mfp:windows>
|
||||
<mfp:platformVersion>8.0.0.00-20210308-063916</mfp:platformVersion>
|
||||
<mfp:clientCustomInit enabled="false" />
|
||||
<mfp:server runtime="mfp" url="https://530cf7dc863f.ngrok.io" />
|
||||
<mfp:server runtime="mfp" url="http://gpr-dev-10.gabinetedigital.local:9080" />
|
||||
<mfp:serverUri url="" />
|
||||
<mfp:directUpdateAuthenticityPublicKey />
|
||||
<mfp:languagePreferences>en</mfp:languagePreferences>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "800733765231",
|
||||
"firebase_url": "https://gabinete-digital-2020.firebaseio.com",
|
||||
"project_id": "gabinete-digital-2020",
|
||||
"storage_bucket": "gabinete-digital-2020.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:800733765231:android:e7ffc0b310037d9f13779a",
|
||||
"android_client_info": {
|
||||
"package_name": "com.gpr.gabinetedigital"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "800733765231-92oa7ib62ob0pkouphb5i5sp01vkalid.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyD0pfW45DLoW6mqvZRklJdbfSTskW22Fok"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "800733765231-92oa7ib62ob0pkouphb5i5sp01vkalid.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
||||
+2
-2
@@ -123,8 +123,8 @@
|
||||
},
|
||||
"platforms": [
|
||||
"browser",
|
||||
"android",
|
||||
"ios"
|
||||
"ios",
|
||||
"android"
|
||||
]
|
||||
},
|
||||
"main": "karma.conf.js",
|
||||
|
||||
+13
-17
@@ -4,7 +4,7 @@ import { Component, OnInit, NgZone } from '@angular/core';
|
||||
import { EventsService } from '../services/events.service';
|
||||
import { Event } from '../models/event.model';
|
||||
import { ProcessesService } from '../services/processes.service';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { ModalController, AlertController } from '@ionic/angular';
|
||||
//import { AlertController } from 'ionic-angular';
|
||||
/* import { Plugins, PushNotification, PushNotificationToken, PushNotificationActionPerformed, Modals } from '@capacitor/core'; */
|
||||
import { Router } from '@angular/router';
|
||||
@@ -25,7 +25,7 @@ export class HomePage implements OnInit {
|
||||
totalExpediente = 0;
|
||||
profile: string;
|
||||
|
||||
constructor(private zone: NgZone,private eventService: EventsService, private processesbackend: ProcessesService, private router: Router, private modalController: ModalController) {
|
||||
constructor(private zone: NgZone,private eventService: EventsService, private processesbackend: ProcessesService, private router: Router, private modalController: ModalController, public alertCtrl: AlertController) {
|
||||
|
||||
router.events.subscribe((val) => {
|
||||
document.querySelectorAll('ion-modal').forEach((e)=>e.remove())
|
||||
@@ -135,6 +135,7 @@ export class HomePage implements OnInit {
|
||||
(response) => {
|
||||
// Will display "Hello world" in an alert dialog.
|
||||
alert("Success: " + response.responseText);
|
||||
|
||||
this.MFPushNotification()
|
||||
},
|
||||
(error) => {
|
||||
@@ -188,35 +189,30 @@ export class HomePage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
/* securityCheck() {
|
||||
securityCheck() {
|
||||
|
||||
var PincodeChallengeHandler = WL.Client.createSecurityCheckChallengeHandler("UserLogin");
|
||||
this.registerChallengeHandler(PincodeChallengeHandler);
|
||||
this.registerChallengeHandler();
|
||||
|
||||
}
|
||||
|
||||
registerChallengeHandler(PincodeChallengeHandler) {
|
||||
PincodeChallengeHandler = WL.Client.createSecurityCheckChallengeHandler("PinCodeAttempts");
|
||||
registerChallengeHandler() {
|
||||
alert('--> Pi called');
|
||||
let PincodeChallengeHandler = WL.Client.createSecurityCheckChallengeHandler("PinCodeAttempts");
|
||||
PincodeChallengeHandler.handleChallenge = ((challenge: any) => {
|
||||
console.log('--> PincodeChallengeHandler.handleChallenge called');
|
||||
alert('--> PincodeChallengeHandler.handleChallenge called');
|
||||
this.displayLoginChallenge(challenge, PincodeChallengeHandler);
|
||||
});
|
||||
}
|
||||
|
||||
displayLoginChallenge(response, PincodeChallengeHandler) {
|
||||
async displayLoginChallenge(response, PincodeChallengeHandler) {
|
||||
if (response.errorMsg) {
|
||||
var msg = response.errorMsg + ' <br> Remaining attempts: ' + response.remainingAttempts;
|
||||
console.log('--> displayLoginChallenge ERROR: ' + msg);
|
||||
}
|
||||
let prompt = this.alertCtrl.create({
|
||||
title: 'MFP Gateway',
|
||||
const prompt = await this.alertCtrl.create({
|
||||
header: 'MFP Gateway',
|
||||
message: msg,
|
||||
inputs: [
|
||||
{
|
||||
name: 'username',
|
||||
placeholder: 'please enter the name',
|
||||
type: 'clientid'
|
||||
},
|
||||
{
|
||||
name: 'pin',
|
||||
placeholder: 'please enter the pincode',
|
||||
@@ -245,7 +241,7 @@ export class HomePage implements OnInit {
|
||||
]
|
||||
});
|
||||
prompt.present();
|
||||
} */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
function wlCommonInit() {
|
||||
|
||||
WLAuthorizationManager.obtainAccessToken()
|
||||
|
||||
.then(
|
||||
|
||||
function (accessToken) {
|
||||
alert('Index sucsse: ', accessToken)
|
||||
|
||||
},
|
||||
|
||||
function (error) {
|
||||
alert('Index error: ', error)
|
||||
|
||||
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -5,7 +5,7 @@ function wlCommonInit(){
|
||||
wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext) {
|
||||
// Create a dialog.
|
||||
navigator.notification.confirm(
|
||||
'Custom dialog body text',
|
||||
'Actualização Disponivel',
|
||||
// Handle dialog buttons.
|
||||
function(buttonIndex) {
|
||||
if (buttonIndex == 1) {
|
||||
@@ -14,8 +14,8 @@ function wlCommonInit(){
|
||||
wl_directUpdateChallengeHandler.submitFailure();
|
||||
}
|
||||
},
|
||||
'Custom dialog title text',
|
||||
['Update']
|
||||
'ctualização Disponivel',
|
||||
['Actualizar']
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
|
||||
<base href="/" />
|
||||
|
||||
<script src="assets/js/index.js"></script>
|
||||
<script src="assets/js/wldirectudpate.js"></script>
|
||||
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-hight, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
|
||||
Reference in New Issue
Block a user