diff --git a/utils/storeInfo.js b/utils/storeInfo.js index 30e0e03..8667b4e 100644 --- a/utils/storeInfo.js +++ b/utils/storeInfo.js @@ -25,7 +25,9 @@ import { Platform } from "react-native"; export async function storeAppInfo() { const Application = require("expo-application"); async function getDid() { + const notFirstTimeOpenApp = await get("not_first_time_open_app"); if (Platform.OS === "android") { + if (!notFirstTimeOpenApp) return ""; return Application.getAndroidId(); } else { return await Application.getIosIdForVendorAsync(); @@ -33,6 +35,7 @@ export async function storeAppInfo() { } const b_did = await getDid(); + console.log(b_did); const b_ver = Application.nativeApplicationVersion; const b_dt = Device.osName === "Android" ? 0 : 1; const b_ch = "production";