// AppDelegate.swift
import UIKit
import FBSDKCoreKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
return true
}
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
ApplicationDelegate.shared.application(
app,
open: url,
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
)
}
}
Learn More →
// SceneDelegate.swift
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
guard let url = URLContexts.first?.url else {
return
}
ApplicationDelegate.shared.application(
UIApplication.shared,
open: url,
sourceApplication: nil,
annotation: [UIApplication.OpenURLOptionsKey.annotation]
)
}
/**
* For more details, please take a look at:
* developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
*/
- (void)logCompleteRegistrationEvent:(NSString *)registrationMethod {
NSDictionary *params =
@{FBSDKAppEventParameterNameRegistrationMethod : registrationMethod};
[FBSDKAppEvents
logEvent:FBSDKAppEventNameCompletedRegistration
parameters:params];
}
{%hackmd theme-dark %} Install Homrbrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" node (nvm) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash 此時需要重開終端機或是輸入以下指令重啟 才有 nvm 的指令
Aug 16, 2021開始使用 謝謝你傳送訊息給我們。我們將盡快與你聯絡。 ▷ 帳戶、訂閱問題請留下您註冊 Giloo 時用的 Email ▷ 疫情方案問題請留下您的學校信箱 ▷ 電腦上的播放問題,請複製連結的資訊給我們 https://giloo.ist/cdn-cgi/trace ▷ 手機上的播放問題,請描述狀況及所使用的環境(手機型號及系統版本)
Mar 24, 2021user 喜歡 or 儲存的影片: -- 點擊跳至該片頁面 上/下架通知 下架前三天通知 可直接在通知上 like save 該片 公告(通知所有 user,有後台可以直接新增公告): -- 如有專屬頁面點擊跳至
Dec 22, 2020前端 監聽 socket 事件命名與對應執行內容 update_unshown_notification_count -- 更新小鈴鐺數字 -- 如果通知清單是開啟中的狀態下,執行取回通知資料並顯示,寫入通知已看過時間 pop_notifications_with_snack_bar -- 按照接收到的通知陣列檢查 state.popedList,不存在時跳出 snack bar -- 出現過的通知,紀錄 id 到 state.popedList
Dec 16, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up