Skip to content

Releases: jblanked/EasySCADE

Push Notifications for iOS via Supabase

Choose a tag to compare

@jblanked jblanked released this 22 Jun 02:05

This uses Supabase and UserNotifications to show a notification when a new message is inserted into the messages table.

You will need to have a Supabase account and create a table called messages with a column called message.

You will also need to enable push notifications in your app via the Apple Developer Portal.

Within Supabase, you will need your Supabase URL and Supabase Key. You can find these in the API section of your Supabase project.

This code is currently for iOS only.

To use, add this in your start.swift

// top of start.swift
#if os(iOS)
import NotificationCenter
import SwiftUI
import UIKit
#endif

// in onFinishLaunching()
#if os(iOS)
@UIApplicationDelegateAdaptor(EasyAppDelegate.self) var appDelegate
#endif

Task
{
	// activate did finish launching
    await appDelegate.application(UIApplication.shared, didFinishLaunchingWithOptions: nil)
    
    let supabase = Easybase(supabaseURL: "YOUR-URL",supabaseKey: "YOUR_KEY")
    
    await supabase.subscribeToInserts(roomName: "general")
    
}

EasyTemplates and Swift 5.10 Support

Choose a tag to compare

@jblanked jblanked released this 08 Jun 14:42

Use Templates to Create Projects Faster

EasyTemplateLogin(self) // Login with Labels

EasyTemplateLogin(self,2) // Login without Labels

EasyTemplateLogin(self,3) // Login without Labels

EasyTemplateRegistration(self) // Registration with Labels

EasyTemplateRegistration(self,2) // Registration without Labels

v1.3.3

Choose a tag to compare

@jblanked jblanked released this 14 Apr 12:50
Remove SQLite dependency

v1.3.2

Choose a tag to compare

@jblanked jblanked released this 14 Apr 12:30
Replaced SQLite with UserDefaults/SharedPreferences

v1.3.1

Choose a tag to compare

@jblanked jblanked released this 14 Apr 03:31
Update README.md

v1.3.0

Choose a tag to compare

@jblanked jblanked released this 14 Apr 03:28

Add in caching for EasySCDImages and EasySCDImageURLs.

v1.2.2

Choose a tag to compare

@jblanked jblanked released this 11 Apr 16:45
Update EasySCADE.swift

v1.2.1

Choose a tag to compare

@jblanked jblanked released this 08 Apr 12:46
Update EasySCADE.swift

v1.2.0

Choose a tag to compare

@jblanked jblanked released this 07 Apr 15:28
Update EasySCADE.swift

v1.1.0

Choose a tag to compare

@jblanked jblanked released this 05 Apr 23:50
Update EasySCADE.swift