chore: explore realtime service later

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-10-27 03:14:43 +01:00
parent 2d89df1b6a
commit ca14b89e90
3 changed files with 0 additions and 35 deletions

View File

@ -64,10 +64,6 @@
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service
android:name=".api.realtime.RealtimeService"
android:exported="false"
android:description="@string/realtime_service_description" />
<activity
android:name=".activities.MainActivity"

View File

@ -1,29 +0,0 @@
package chat.revolt.api.realtime
import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
class RealtimeService : Service() {
class LocalBinder : Binder() {
fun getService(): RealtimeService {
return RealtimeService()
}
}
private val binder = LocalBinder()
override fun onBind(intent: Intent): IBinder {
return binder
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
return START_STICKY
}
override fun onCreate() {
}
}

View File

@ -673,6 +673,4 @@
<string name="notification_channel_group_social">Friends and Social</string>
<string name="notification_channel_friend_requests">Friend Requests</string>
<string name="notification_channel_friend_requests_description">Incoming friend requests, as well as accepted requests you\'ve sent.</string>
<string name="realtime_service_description">This service enables the app to receive messages and updates in real-time.</string>
</resources>