@capgo/capacitor-stream-call 0.0.50 → 0.0.51

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.
@@ -238,6 +238,10 @@ public class StreamCallPlugin : Plugin() {
238
238
 
239
239
  // Notify WebView/JS about incoming call so it can render its own UI
240
240
  notifyListeners("incomingCall", payload, true)
241
+
242
+ // Delay bringing app to foreground to allow the event to be processed first
243
+ kotlinx.coroutines.delay(500) // 500ms delay
244
+ bringAppToForeground()
241
245
  } catch (e: Exception) {
242
246
  android.util.Log.e("StreamCallPlugin", "Error getting call info for incoming call", e)
243
247
  // Fallback to basic payload without caller info
@@ -246,10 +250,12 @@ public class StreamCallPlugin : Plugin() {
246
250
  put("type", "incoming")
247
251
  }
248
252
  notifyListeners("incomingCall", payload, true)
253
+
254
+ // Delay bringing app to foreground to allow the event to be processed first
255
+ kotlinx.coroutines.delay(500) // 500ms delay
256
+ bringAppToForeground()
249
257
  }
250
258
  }
251
-
252
- bringAppToForeground()
253
259
  } else {
254
260
  android.util.Log.w("StreamCallPlugin", "handleOnNewIntent: INCOMING_CALL - cid is null. Cannot process.")
255
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-stream-call",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "Uses the https://getstream.io/ SDK to implement calling in Capacitor",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",