Skip to content

Commit 005f928

Browse files
authored
New blog post on android deep links
Blog post for Android Deep Links
2 parents ae74799 + 4c71894 commit 005f928

File tree

4 files changed

+59
-6
lines changed

4 files changed

+59
-6
lines changed

apps/dash-frontend/src/lib/AddClientDomainPopup.svelte

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
<script lang="ts">
2-
import { MediaQuery } from 'runed';
2+
import { browser } from '$app/environment';
33
import * as Dialog from '$lib/components/ui/dialog/index.js';
44
import * as Drawer from '$lib/components/ui/drawer/index.js';
55
import { buttonVariants } from '$lib/components/ui/button/index.js';
66
77
import CreateDomainForm from '$lib/CreateDomainForm.svelte';
88
99
let open = false;
10-
const isDesktop = new MediaQuery('(min-width: 768px)');
10+
let isDesktop = false;
11+
12+
// Only run this code on the client side
13+
$: if (browser) {
14+
isDesktop = window.innerWidth >= 768;
15+
window.addEventListener('resize', () => {
16+
isDesktop = window.innerWidth >= 768;
17+
});
18+
}
1119
1220
export let data;
1321
</script>
1422

15-
{#if isDesktop.matches}
23+
{#if isDesktop}
1624
<Dialog.Root bind:open>
1725
<Dialog.Trigger class={buttonVariants({ variant: 'outline' })}>Add Client Domain</Dialog.Trigger
1826
>

apps/dash-frontend/src/lib/AddCustomNetworkPopup.svelte

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
<script lang="ts">
2-
import { MediaQuery } from 'runed';
2+
import { browser } from '$app/environment';
33
import * as Dialog from '$lib/components/ui/dialog/index.js';
44
import * as Drawer from '$lib/components/ui/drawer/index.js';
55
import { buttonVariants } from '$lib/components/ui/button/index.js';
66
77
import IntegrationForm from '$lib/CreateIntegrationForm.svelte';
88
99
let open = false;
10-
const isDesktop = new MediaQuery('(min-width: 768px)');
10+
let isDesktop = false;
11+
12+
// Only run this code on the client side
13+
$: if (browser) {
14+
isDesktop = window.innerWidth >= 768;
15+
window.addEventListener('resize', () => {
16+
isDesktop = window.innerWidth >= 768;
17+
});
18+
}
1119
1220
export let data;
1321
</script>
1422

15-
{#if isDesktop.matches}
23+
{#if isDesktop}
1624
<Dialog.Root bind:open>
1725
<Dialog.Trigger class={buttonVariants({ variant: 'outline' })}
1826
>Add Custom Network</Dialog.Trigger
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
draft: false
3+
4+
5+
date: 2024-12-01
6+
7+
authors:
8+
- ddxv
9+
10+
categories:
11+
- Updates
12+
---
13+
14+
# IP Geo Tagging and first commits for iOS and Android SDKs
15+
16+
17+
18+
The past month I focused on getting a v0.0.1 of the Android SDK working. I also worked on some basic geo IP tagging and best of all we had a super talented person show up to help with iOS SDKs.
19+
20+
## Android SDK
21+
22+
This turned out to take a bit longer than expected, but now at least there is a very basic example of how it could one day work. What we have now is just a single function that calls `app_open` event from an Android Application. The [OpenAttribution Android SDK](https://github.com/OpenAttribution/oa-android-sdk) is also live on Maven Central and can be added as a dependency to any Android project
23+
24+
25+
## IP Geo Tagging
26+
27+
A simple IP geo tagging service was added to the `postback-api` to get the country and city of the user. This was also added to the various testing simulated data as well. Finally the `dash-frontend` was updated to show the country for the demo site as well.
28+
29+
30+
## iOS SDK
31+
32+
This has just gotten started as well, and likely at a much more professional setup than the Android side. The code is hosted on [OpenAttribution iOS SDK](https://github.com/OpenAttribution/oa-ios-sdk).
33+
34+
35+
So just a quick update, but things are moving forward.

apps/postback-api/dbcon/queries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ async def get_app_links() -> dict[str, dict[str, str]]:
5050
+ df["google_store_id"]
5151
+ "&url=https://"
5252
+ df["domain_url"]
53+
+ "/"
54+
+ df["share_slug"]
5355
)
5456
if df.empty:
5557
return {}

0 commit comments

Comments
 (0)