mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
native code
This commit is contained in:
@@ -26,6 +26,8 @@ import { Plugins } from '@capacitor/core';
|
|||||||
import { Filesystem } from '@capacitor/filesystem';
|
import { Filesystem } from '@capacitor/filesystem';
|
||||||
import { NewActionPage } from '../pages/publications/new-action/new-action.page';
|
import { NewActionPage } from '../pages/publications/new-action/new-action.page';
|
||||||
import { PublicationsPage } from '../pages/publications/publications.page';
|
import { PublicationsPage } from '../pages/publications/publications.page';
|
||||||
|
import { fetchData } from 'plugins/Echo';
|
||||||
|
|
||||||
|
|
||||||
const { App } = Plugins;
|
const { App } = Plugins;
|
||||||
|
|
||||||
@@ -153,6 +155,8 @@ export class HomePage implements OnInit {
|
|||||||
|
|
||||||
refreshing() { }
|
refreshing() { }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async checkSendIntentReceived() {
|
async checkSendIntentReceived() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -288,6 +292,13 @@ export class HomePage implements OnInit {
|
|||||||
App.addListener('appStateChange', ({ isActive }) => {
|
App.addListener('appStateChange', ({ isActive }) => {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
// The app is in the foreground.
|
// The app is in the foreground.
|
||||||
|
fetchData()
|
||||||
|
.then((value) => {
|
||||||
|
console.log('fetchData was successful in file2.ts',value);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error('Error in file2.ts:', error);
|
||||||
|
});
|
||||||
console.log('App is in the foreground');
|
console.log('App is in the foreground');
|
||||||
/* this.checkSendIntentReceived() */
|
/* this.checkSendIntentReceived() */
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export const oaprProd: Environment = {
|
|||||||
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
||||||
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
||||||
apiPCURL: 'http://gdqas-cmapi.oapr.gov.ao/api/',
|
apiPCURL: 'https://gdqas-cmapi.oapr.gov.ao/api/',
|
||||||
logoLabel: 'Presidente da República',
|
logoLabel: 'Presidente da República',
|
||||||
despachoLabel: 'Presidenciais',
|
despachoLabel: 'Presidenciais',
|
||||||
despachoLabel2: 'Despachos Presidênciais',
|
despachoLabel2: 'Despachos Presidênciais',
|
||||||
@@ -33,7 +33,7 @@ export const oaprDev: Environment = {
|
|||||||
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
||||||
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
||||||
apiPCURL: 'http://gdqas-cmapi.oapr.gov.ao/api/',
|
apiPCURL: 'https://gdqas-cmapi.oapr.gov.ao/api/',
|
||||||
logoLabel: 'Presidente da República',
|
logoLabel: 'Presidente da República',
|
||||||
despachoLabel: 'Presidencial',
|
despachoLabel: 'Presidencial',
|
||||||
despachoLabel2: 'Despachos Presidênciais',
|
despachoLabel2: 'Despachos Presidênciais',
|
||||||
|
|||||||
Reference in New Issue
Block a user