diff --git a/android/app/src/main/kotlin/net/defined/mobile_nebula/APIClient.kt b/android/app/src/main/kotlin/net/defined/mobile_nebula/APIClient.kt index e67b161..93e4beb 100644 --- a/android/app/src/main/kotlin/net/defined/mobile_nebula/APIClient.kt +++ b/android/app/src/main/kotlin/net/defined/mobile_nebula/APIClient.kt @@ -8,8 +8,7 @@ class InvalidCredentialsException: Exception("Invalid credentials") class APIClient(context: Context) { private val packageInfo = PackageInfo(context) private val client = mobileNebula.MobileNebula.newAPIClient( - "%s/%s (Android %s)".format( - packageInfo.getName(), + "MobileNebula/%s (Android %s)".format( packageInfo.getVersion(), packageInfo.getSystemVersion(), )) diff --git a/ios/Runner/APIClient.swift b/ios/Runner/APIClient.swift index d4f4350..b8f2ef1 100644 --- a/ios/Runner/APIClient.swift +++ b/ios/Runner/APIClient.swift @@ -10,7 +10,7 @@ class APIClient { init() { let packageInfo = PackageInfo() - apiClient = MobileNebulaNewAPIClient("\(packageInfo.getName())/\(packageInfo.getVersion()) (iOS \(packageInfo.getSystemVersion()))")! + apiClient = MobileNebulaNewAPIClient("MobileNebula/\(packageInfo.getVersion()) (iOS \(packageInfo.getSystemVersion()))")! } func enroll(code: String) throws -> IncomingSite {