mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
shared image when app its close
This commit is contained in:
@@ -152,7 +152,7 @@ export class HomePage implements OnInit {
|
||||
|
||||
|
||||
|
||||
async checkSendIntentReceived(result) {
|
||||
async checkSendIntentReceived() {
|
||||
|
||||
|
||||
SendIntent.checkSendIntentReceived().then((result: any) => {
|
||||
@@ -294,29 +294,9 @@ export class HomePage implements OnInit {
|
||||
if (!this.platform.is('desktop')) {
|
||||
App.addListener('appStateChange', ({ isActive }) => {
|
||||
if (isActive) {
|
||||
/* this.checkSendIntentReceived("value") */
|
||||
// The app is in the foreground.
|
||||
/* fetchData()
|
||||
.then((value) => {
|
||||
console.log('fetchData was successful in file2.ts', value);
|
||||
this.imageToBase64(value)
|
||||
.then((base64Data) => {s
|
||||
if (base64Data) {
|
||||
// Use the base64 data as needed
|
||||
console.log('Base64 data:', base64Data);
|
||||
} else {
|
||||
console.error('Base64 data is null');
|
||||
}
|
||||
});
|
||||
if (value)
|
||||
this.checkSendIntentReceived(value)
|
||||
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Error in file2.ts:', error);
|
||||
}); */
|
||||
/* sendIntent.setRouteService(this.router) */
|
||||
console.log('App is in the foreground');
|
||||
/* this.checkSendIntentReceived() */
|
||||
this.checkSendIntentReceived()
|
||||
} else {
|
||||
// The app is in the background.
|
||||
console.log('App is in the background');
|
||||
|
||||
Reference in New Issue
Block a user