Is possible to create a socket server (NOT socket client), in iOS and Android?
The socket server will (in iOS/Android) only listen to incoming clients and react only based on that.
Yes, you can!
just need to get phone IMEI
Instead of user information!
but in this way don't need to sign up user
just need and in onResume
get IMEI
and send this to the server instead of user
Yes. And here is a working chess game example between server socket on Android and client socket on iOS.
Android chess in Kotlin: https://github.com/zhijunsheng/chess-kotlin-andr
iOS chess in Swift: https://github.com/zhijunsheng/chess-uikit-ios
There is a demo video too.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.