chore: explore realtime service later
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
2d89df1b6a
commit
ca14b89e90
|
|
@ -64,10 +64,6 @@
|
||||||
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
<service
|
|
||||||
android:name=".api.realtime.RealtimeService"
|
|
||||||
android:exported="false"
|
|
||||||
android:description="@string/realtime_service_description" />
|
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.MainActivity"
|
android:name=".activities.MainActivity"
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -673,6 +673,4 @@
|
||||||
<string name="notification_channel_group_social">Friends and Social</string>
|
<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">Friend Requests</string>
|
||||||
<string name="notification_channel_friend_requests_description">Incoming friend requests, as well as accepted requests you\'ve sent.</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>
|
</resources>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue