File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
android/example/src/main/java/io/package/android/ui/accounts
swift/example-uikit/UIKitExample Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ class AccountsViewModel : ViewModel() {
81
81
account.createOAuth2Session(
82
82
activity,
83
83
OAuthProvider.FACEBOOK,
84
- "appwrite-callback-6070749e6acd4://demo .appwrite.io/auth/oauth2/success",
85
- "appwrite-callback-6070749e6acd4://demo .appwrite.io/auth/oauth2/failure"
84
+ "appwrite-callback-6070749e6acd4://cloud .appwrite.io/auth/oauth2/success",
85
+ "appwrite-callback-6070749e6acd4://cloud .appwrite.io/auth/oauth2/failure"
86
86
)
87
87
} catch (e: Exception) {
88
88
_error.postValue(Event(e))
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import UIKit
2
2
import NIO
3
3
import Appwrite
4
4
5
- let host = " https://demo .appwrite.io/v1 "
5
+ let host = " https://cloud .appwrite.io/v1 "
6
6
7
7
class ViewController : UIViewController {
8
8
@@ -72,8 +72,8 @@ class ViewController: UIViewController {
72
72
do {
73
73
let response = try await account. createOAuth2Session (
74
74
provider: " facebook " ,
75
- success: " https://demo .appwrite.io/auth/oauth2/success " ,
76
- failure: " https://demo .appwrite.io/auth/oauth2/failure "
75
+ success: " https://cloud .appwrite.io/auth/oauth2/success " ,
76
+ failure: " https://cloud .appwrite.io/auth/oauth2/failure "
77
77
)
78
78
self . response = String ( describing: response)
79
79
} catch {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class ServiceTest {
61
61
@Throws(IOException ::class )
62
62
fun test () {
63
63
val client = Client (ApplicationProvider .getApplicationContext())
64
- .setEndpointRealtime(" wss://demo .appwrite.io/v1" )
64
+ .setEndpointRealtime(" wss://cloud .appwrite.io/v1" )
65
65
.setProject(" console" )
66
66
.addHeader(" Origin" , " http://localhost" )
67
67
.setSelfSigned(true )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Tests: XCTestCase {
21
21
22
22
func test( ) async throws {
23
23
let client = Client ( )
24
- . setEndpointRealtime ( " ws://demo .appwrite.io/v1 " )
24
+ . setEndpointRealtime ( " ws://cloud .appwrite.io/v1 " )
25
25
. setProject ( " console " )
26
26
. addHeader ( key: " Origin " , value: " http://localhost " )
27
27
. setSelfSigned ( )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ void main() async {
29
29
client.setSelfSigned ();
30
30
client.setProject ('console' );
31
31
client.setEndPointRealtime (
32
- "wss://demo .appwrite.io/v1" ); // change this later to appwrite.io
32
+ "wss://cloud .appwrite.io/v1" );
33
33
34
34
Realtime realtime = Realtime (client);
35
35
final rtsub = realtime.subscribe (["tests" ]);
Original file line number Diff line number Diff line change 35
35
36
36
// Realtime setup
37
37
client . setProject ( 'console' ) ;
38
- client . setEndpointRealtime ( 'ws://demo .appwrite.io/v1' ) ;
38
+ client . setEndpointRealtime ( 'ws://cloud .appwrite.io/v1' ) ;
39
39
40
40
client . subscribe ( 'tests' , event => {
41
41
responseRealtime = event . payload . response ;
You can’t perform that action at this time.
0 commit comments