diff --git a/packages/app/constants/settings/tap_share/index.jsx b/packages/app/constants/settings/tap_share/index.jsx
index 5ac55125..b3423b21 100644
--- a/packages/app/constants/settings/tap_share/index.jsx
+++ b/packages/app/constants/settings/tap_share/index.jsx
@@ -263,26 +263,37 @@ const OpenTagEditor = ({ tag, onFinish = () => app.navigation.softReload() } = {
const TapShareRender = () => {
return
+ {
+ !app.cores.nfc.scanning && app.isMobile &&
+ }
+
Registered Tags
-
- You can quickly edit your tags by tapping them.
-
-
+ {
+ app.cores.nfc.scanning &&
+ You can quickly edit your tags by tapping them.
+
+ }
-
}
- onClick={() => OpenTagEditor()}
- >
- Add new
-
+ {
+ app.isMobile &&
}
+ onClick={() => OpenTagEditor()}
+ >
+ Add new
+
+ }
}
diff --git a/packages/app/constants/settings/tap_share/steps/tag_writter/index.jsx b/packages/app/constants/settings/tap_share/steps/tag_writter/index.jsx
index 86cc261b..ef54ea63 100644
--- a/packages/app/constants/settings/tap_share/steps/tag_writter/index.jsx
+++ b/packages/app/constants/settings/tap_share/steps/tag_writter/index.jsx
@@ -22,13 +22,6 @@ export default (props) => {
return false
}
- const nfcInstance = app.cores.nfc.instance()
-
- if (!nfcInstance) {
- setError(NFC_ERRORS.NFC_NOT_AVAILABLE)
- return false
- }
-
setError(null)
setLoading(true)
@@ -40,7 +33,7 @@ export default (props) => {
return false
}
- nfcInstance.write({
+ app.cores.nfc.writeNdef({
records: [{
recordType: "url",
data: context.values.endpoint_url
diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx
index 2fdbb019..c04e1baa 100755
--- a/packages/app/src/App.jsx
+++ b/packages/app/src/App.jsx
@@ -66,7 +66,6 @@ import loadable from "@loadable/component"
import { StatusBar, Style } from "@capacitor/status-bar"
import { App as CapacitorApp } from "@capacitor/app"
-import { SplashScreen } from "@capacitor/splash-screen"
import { CapacitorUpdater } from "@capgo/capacitor-updater"
import SessionModel from "models/session"
@@ -98,6 +97,8 @@ import * as Router from "./router"
import "theme/index.less"
+console.log(`REACT VERSION: ${React.version}`)
+
CapacitorUpdater.notifyAppReady()
class ComtyApp extends React.Component {
@@ -118,15 +119,10 @@ class ComtyApp extends React.Component {
}
static splashAwaitEvent = "app.initialization.finish"
-
static async initialize() {
- SplashScreen.show({
- autoHide: false,
- })
-
- window.app.splash = SplashScreen
window.app.version = config.package.version
window.app.message = antd.message
+ window.app.isCapacitor = window.navigator.userAgent === "capacitor"
window.localStorage.setItem("last_version", window.app.version)
@@ -492,8 +488,6 @@ class ComtyApp extends React.Component {
this.setState({ initialized: true })
Utils.handleOpenDevTools()
-
- SplashScreen.hide()
}
onRuntimeStateUpdate = (state) => {