liming 2 hete
szülő
commit
c36d3debd1
4 módosított fájl, 11 hozzáadás és 6 törlés
  1. 2 1
      package.json
  2. 5 4
      src/composables/dAppView.js
  3. 3 0
      src/utils/notifications.js
  4. 1 1
      src/views/dapp/index.vue

+ 2 - 1
package.json

@@ -20,6 +20,7 @@
   },
   "dependencies": {
     "@aparajita/capacitor-biometric-auth": "^9.0.0",
+    "@capacitor-community/native-audio": "^7.0.0",
     "@capacitor/android": "^7.2.0",
     "@capacitor/app": "^7.0.1",
     "@capacitor/app-launcher": "^7.0.1",
@@ -34,7 +35,7 @@
     "@capacitor/push-notifications": "^7.0.1",
     "@capacitor/status-bar": "^7.0.1",
     "@capacitor/toast": "^7.0.1",
-    "@capgo/capacitor-updater": "^7.8.7", 
+    "@capgo/capacitor-updater": "^7.8.7",
     "axios": "^1.10.0",
     "clipboard": "^2.0.11",
     "crypto-js": "^4.2.0",

+ 5 - 4
src/composables/dAppView.js

@@ -7,11 +7,12 @@ import { openGaoDe } from "./appLauncher";
 await InAppBrowser.addListener(
   "browserPageNavigationCompleted",
   async (data) => {
-    if (data.url.indexOf("amap.com/navigation") > -1) { 
+    if (data.url.indexOf("go=gaode") > -1) { 
       const params = new URLSearchParams(data.url);
-      const to = params.get("to");
-      await openGaoDe(to[0], to[1], to[2]);
-      // await InAppBrowser.close();
+      const lat = params.get("latitude");
+      const lan = params.get("longitude");
+      const address = params.get("address");
+      await openGaoDe(lat,lan, address); 
     }
   }
 );

+ 3 - 0
src/utils/notifications.js

@@ -0,0 +1,3 @@
+import { LocalNotifications } from '@capacitor/local-notifications';
+import { Audio } from '@capacitor-community/audio';
+import { App } from '@capacitor/app';

+ 1 - 1
src/views/dapp/index.vue

@@ -233,7 +233,7 @@ const handleVisitDapp = (item) => {
       oaid:systemStore.DeviceId
     })
   );
-  openDapp('https://locallifeweb.nanodreamtech.com', { dapp, d:walletStore.account });
+  openDapp('http://192.168.0.11:5173/#/', { dapp, d:walletStore.account });
 };
 const loadHistoryList = () => {
   const history = systemStore.DAPP_CACHE_KEY;