1
1
import { Component , OnDestroy , OnInit } from '@angular/core' ;
2
2
import { Router } from '@angular/router' ;
3
- import { Platform } from '@ionic/angular' ;
4
3
import { Filter , FilterValue } from '@app/interfaces/interfaces' ;
5
4
import { SettingsService } from '@app/services/settings/settings.service' ;
6
5
import { environment } from '@env/environment' ;
7
6
import { Subscription } from 'rxjs' ;
8
7
import { cloneDeep } from 'lodash' ;
9
- import { AppLauncher } from '@capacitor/app-launcher' ;
10
8
11
9
@Component ( {
12
10
selector : 'app-home' ,
@@ -23,7 +21,6 @@ export class HomePage implements OnInit, OnDestroy {
23
21
constructor (
24
22
private settings : SettingsService ,
25
23
private router : Router ,
26
- private platform : Platform
27
24
) { }
28
25
29
26
ngOnInit ( ) {
@@ -50,29 +47,4 @@ export class HomePage implements OnInit, OnDestroy {
50
47
public goToEmergency ( ) {
51
48
this . router . navigate ( [ '/tabs/emergency' ] ) ;
52
49
}
53
-
54
- public async goToReport ( ) {
55
- if ( this . platform . is ( 'android' ) ) {
56
- if (
57
- (
58
- await AppLauncher . canOpenUrl ( {
59
- url : `com.suricate`
60
- } )
61
- ) . value
62
- ) {
63
- await AppLauncher . openUrl ( {
64
- url : `com.suricate`
65
- } ) ;
66
- } else {
67
- window . open (
68
- `https://play.google.com/store/apps/details?id=com.suricate&hl=fr` ,
69
- '_blank'
70
- ) ;
71
- }
72
- } else if ( this . platform . is ( 'ios' ) ) {
73
- await AppLauncher . openUrl ( {
74
- url : `https://apps.apple.com/fr/app/suricate-sports-de-nature/id1077352900`
75
- } ) ;
76
- }
77
- }
78
50
}
0 commit comments