* feat(android, dart): add check for initialization, show proper error messages * feat(exception): add exception mapper for android and ios * feat(ios): check initialization in swift * fix(android): add initialization check for methods, remove disconnect() inside onDetachedFromEngine * chore: code style, version, changelog
21 lines
571 B
Swift
21 lines
571 B
Swift
//
|
|
// Constants.swift
|
|
// nearby_service
|
|
//
|
|
// Created by Kseniia Nikitina on 4/2/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
let SERVICE_TYPE = "mp-connection"
|
|
let PEER_ID = "PEER-ID"
|
|
let DEVICE_NAME = "DEVICE-NAME"
|
|
let ON_MESSAGE_RECEIVED = Notification.Name("NearbySessionOnMessageReceived")
|
|
let ON_RESOURCE_RECEIVED = Notification.Name("NearbySessionOnResourceReceived")
|
|
|
|
let DART_COMMAND_MESSAGE_RECEIVED = "invoke_nearby_service_message_received"
|
|
let DART_COMMAND_RESOURCES_RECEIVED = "invoke_nearby_service_resources_received"
|
|
|
|
let ERROR_NO_INITIALIZATION = "NO_INITIALIZATION"
|