@capgo/capacitor-stream-call 7.0.3 → 7.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/src/main/java/ee/forgr/capacitor/streamcall/StreamCallBackgroundService.java
CHANGED
|
@@ -27,10 +27,8 @@ public class StreamCallBackgroundService extends Service {
|
|
|
27
27
|
public void onDestroy() {
|
|
28
28
|
super.onDestroy();
|
|
29
29
|
Log.d(TAG, "Service destroyed");
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
restartServiceIntent.setPackage(getPackageName());
|
|
33
|
-
startService(restartServiceIntent);
|
|
30
|
+
// Don't manually restart the service - START_STICKY handles recreation
|
|
31
|
+
// Android 12+ blocks background service starts
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
@Nullable
|
|
@@ -166,10 +166,6 @@ public class StreamCallPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
166
166
|
do {
|
|
167
167
|
print("Setting up token subscription")
|
|
168
168
|
try self.requireInitialized()
|
|
169
|
-
if let lastVoIPToken = self.lastVoIPToken, !lastVoIPToken.isEmpty {
|
|
170
|
-
print("Deleting device: \(lastVoIPToken)")
|
|
171
|
-
try await self.streamVideo?.deleteDevice(id: lastVoIPToken)
|
|
172
|
-
}
|
|
173
169
|
if !updatedDeviceToken.isEmpty {
|
|
174
170
|
print("Setting voip device: \(updatedDeviceToken)")
|
|
175
171
|
try await self.streamVideo?.setVoipDevice(id: updatedDeviceToken)
|
package/package.json
CHANGED