mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
improve intent with scheduler
This commit is contained in:
@@ -27,7 +27,7 @@ import { NewActionPage } from '../pages/publications/new-action/new-action.page'
|
||||
import { PublicationsPage } from '../pages/publications/publications.page';
|
||||
import { fetchData } from 'plugins/Echo';
|
||||
import { Encoding, Filesystem, FilesystemDirectory } from '@capacitor/filesystem';
|
||||
|
||||
import { sendIntent } from 'src/app/services/shareIntent'
|
||||
|
||||
|
||||
const { App } = Plugins;
|
||||
@@ -140,15 +140,7 @@ export class HomePage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* navigator.serviceWorker.ready.then((registration) => {
|
||||
console.log('yes please')
|
||||
registration.active.postMessage(
|
||||
"Test message sent immediately after creation",
|
||||
);
|
||||
}); */
|
||||
|
||||
/* this.checkSendIntentReceived(''); */
|
||||
sendIntent.setRouteService(this.router)
|
||||
|
||||
}
|
||||
|
||||
@@ -172,7 +164,7 @@ export class HomePage implements OnInit {
|
||||
if (result.url) {
|
||||
let resultUrl = decodeURIComponent(result.url);
|
||||
Filesystem.readFile({path: resultUrl})
|
||||
|
||||
|
||||
.then(async (content) => {
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
@@ -184,7 +176,7 @@ export class HomePage implements OnInit {
|
||||
cssClass: 'new-action modal modal-desktop',
|
||||
backdropDismiss: false
|
||||
});
|
||||
|
||||
|
||||
modal.onDidDismiss().then(() => {
|
||||
SendIntent.finish();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user