Skip to content

Instantly share code, notes, and snippets.

View dominiczaq's full-sized avatar

Grzegorz Dominiczak dominiczaq

View GitHub Profile
@dominiczaq
dominiczaq / ContentView.swift
Created October 9, 2025 10:44
Tidio Widget basic swift integration
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
WebView(htmlContent: """
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
@dominiczaq
dominiczaq / MainActivity.kt
Created October 9, 2025 10:42
Tidio Widget basic android integration
package com.tidiochat.tidiowidgetintegration
import android.os.Bundle
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import socket
import struct
SERVER_IP = "localhost"
def crash():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
s.connect((SERVER_IP, 3001))
l_onoff = 1