Skip to content

Instantly share code, notes, and snippets.

@RohitRajendran
RohitRajendran / Firebase RealtimeDB with WatchOS - FirebaseExampleApp.swift
Created May 3, 2021 22:12
Firebase RealtimeDB with WatchOS - FirebaseExampleApp.swift
import Firebase
import SwiftUI
@main
struct FirebaseExampleApp: App {
init() {
FirebaseApp.configure()
}
var body: some Scene {
@RohitRajendran
RohitRajendran / Firebase RealtimeDB with WatchOS - MessageManager.swift
Created May 3, 2021 22:11
Firebase RealtimeDB with WatchOS - MessageManager.swift
// Used in https://rohitr.medium.com/get-started-with-firebase-realtime-db-and-watchos-84f3b70d36e
import FirebaseDatabase
import Foundation
class MessageManager: ObservableObject {
@Published var message = "Does it work?"
lazy var messageRef: DatabaseReference = Database.database().reference().ref.child("/message")
var messageHandle: DatabaseHandle?
@RohitRajendran
RohitRajendran / Firebase RealtimeDB with WatchOS - ContentView.swift
Last active May 3, 2021 22:10
Firebase RealtimeDB with WatchOS - ContentView.swift
// Used in https://rohitr.medium.com/get-started-with-firebase-realtime-db-and-watchos-84f3b70d36e
import FirebaseDatabase
import SwiftUI
struct ContentView: View {
@ObserverdObject var messageManager = MessageManager()
var body: some View {
Text(messageManager.message)
.padding().onAppear {
@RohitRajendran
RohitRajendran / Blue Skies - Privacy Policy.md
Last active June 19, 2016 06:38
Privacy Policy for Blue Skies Windows 10 app

PRIVACY POLICY

This privacy policy governs your use of the software application Blue Skies that was created by Rohit Rajendran. The Application is a weather application

What information does the Application obtain and how is it used?

Automatically Collected Information

In addition, the Application may collect certain information automatically, including, but not limited to, the type of mobile device you use, your mobile devices unique device ID, the IP address of your mobile device, your mobile operating system, the type of mobile Internet browsers you use, and information about the way you use the Application.

Does the Application collect precise real time location information of the device?

When you visit the mobile application, we may use GPS technology (or other similar technology) to determine your current location in order to determine the city you are located within and display