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() {
8181 account.createOAuth2Session(
8282 activity,
8383 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"
8686 )
8787 } catch (e: Exception) {
8888 _error.postValue(Event(e))
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import UIKit
22import NIO
33import Appwrite
44
5- let host = " https://demo .appwrite.io/v1 "
5+ let host = " https://cloud .appwrite.io/v1 "
66
77class ViewController : UIViewController {
88
@@ -72,8 +72,8 @@ class ViewController: UIViewController {
7272 do {
7373 let response = try await account. createOAuth2Session (
7474 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 "
7777 )
7878 self . response = String ( describing: response)
7979 } catch {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class ServiceTest {
6161 @Throws(IOException ::class )
6262 fun test () {
6363 val client = Client (ApplicationProvider .getApplicationContext())
64- .setEndpointRealtime(" wss://demo .appwrite.io/v1" )
64+ .setEndpointRealtime(" wss://cloud .appwrite.io/v1" )
6565 .setProject(" console" )
6666 .addHeader(" Origin" , " http://localhost" )
6767 .setSelfSigned(true )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Tests: XCTestCase {
2121
2222 func test( ) async throws {
2323 let client = Client ( )
24- . setEndpointRealtime ( " ws://demo .appwrite.io/v1 " )
24+ . setEndpointRealtime ( " ws://cloud .appwrite.io/v1 " )
2525 . setProject ( " console " )
2626 . addHeader ( key: " Origin " , value: " http://localhost " )
2727 . setSelfSigned ( )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ void main() async {
2929 client.setSelfSigned ();
3030 client.setProject ('console' );
3131 client.setEndPointRealtime (
32- "wss://demo .appwrite.io/v1" ); // change this later to appwrite.io
32+ "wss://cloud .appwrite.io/v1" );
3333
3434 Realtime realtime = Realtime (client);
3535 final rtsub = realtime.subscribe (["tests" ]);
Original file line number Diff line number Diff line change 3535
3636 // Realtime setup
3737 client . setProject ( 'console' ) ;
38- client . setEndpointRealtime ( 'ws://demo .appwrite.io/v1' ) ;
38+ client . setEndpointRealtime ( 'ws://cloud .appwrite.io/v1' ) ;
3939
4040 client . subscribe ( 'tests' , event => {
4141 responseRealtime = event . payload . response ;
You can’t perform that action at this time.
0 commit comments