This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar, IonButton, IonFooter, IonList, IonCard, IonCardContent, IonItem, IonLabel, IonListHeader, IonText, IonButtons, IonMenuButton } from '@ionic/react'; | |
import { PushNotificationSchema, PushNotifications, Token, ActionPerformed } from '@capacitor/push-notifications'; | |
import './Home.css'; | |
import { Toast } from "@capacitor/toast"; | |
export default function PushNotificationsContainer() { | |
const nullEntry: any[] = [] | |
const [notifications, setnotifications] = useState(nullEntry); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Redirect, Route } from 'react-router-dom'; | |
import { IonApp, IonPage, IonRouterOutlet } from '@ionic/react'; | |
import { IonReactRouter } from '@ionic/react-router'; | |
import Home from './pages/Home'; | |
import Login from './pages/Login'; | |
/* Core CSS required for Ionic components to work properly */ | |
import '@ionic/react/css/core.css'; | |
/* Basic CSS for apps built with Ionic */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header [translucent]="true"> | |
<ion-toolbar color="primary"> | |
<ion-title> | |
TomTom Maps | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> | |
<div #map id="map"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import HomeView from './HomeView'; | |
import { Capacitor, Plugins, CallbackID } from "@capacitor/core"; | |
import LocationService from './Location'; | |
const { Geolocation, Toast } = Plugins; | |
class HomeContainer extends Component { | |
state: any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, NgZone } from '@angular/core'; | |
import { Plugins } from '@capacitor/core'; | |
const { Geolocation, Toast } = Plugins; | |
import { NativeGeocoder, NativeGeocoderResult, NativeGeocoderOptions } from '@ionic-native/native-geocoder/ngx'; | |
@Component({ | |
selector: 'app-tab2', | |
templateUrl: 'tab2.page.html', | |
styleUrls: ['tab2.page.scss'] | |
}) | |
export class Tab2Page { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar, IonButton, IonFooter, IonList, IonCard, IonCardContent, IonItem, IonLabel, IonListHeader, IonText, IonButtons, IonMenuButton } from '@ionic/react'; | |
export default function PushNotificationsContainer() { | |
const nullEntry: any[] = [] | |
const [notifications, setnotifications] = useState(nullEntry); | |
return ( | |
<IonPage id='main'> | |
<IonHeader> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Platform } from '@ionic/angular'; | |
import { Http, HttpResponse } from '@capacitor-community/http'; | |
@Component({ | |
selector: 'app-cap-http', | |
templateUrl: './cap-http.page.html', | |
styleUrls: ['./cap-http.page.scss'], | |
}) | |
export class CapHttpPage{ | |
plt: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Platform } from '@ionic/angular'; | |
import { HttpClient } from '@angular/common/http'; | |
@Component({ | |
selector: 'app-ionic-native-adv', | |
templateUrl: './ionic-native-adv.page.html', | |
styleUrls: ['./ionic-native-adv.page.scss'], | |
}) | |
export class IonicNativeAdvPage{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { HttpBackend, HttpXhrBackend } from '@angular/common/http'; | |
import { NativeHttpModule, NativeHttpBackend, NativeHttpFallback } from 'ionic-native-http-connection-backend'; | |
import { Platform } from '@ionic/angular'; | |
@NgModule({ | |
declarations: [], | |
imports: [ | |
NativeHttpModule | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Platform } from '@ionic/angular'; | |
@Component({ | |
selector: 'app-fetch', | |
templateUrl: './fetch.page.html', | |
styleUrls: ['./fetch.page.scss'], | |
}) | |
export class FetchPage { | |
localhost:string = 'localhost'; | |
plt: string; |
NewerOlder