From 43f39fee7b08badd9549c18b97af717c3f6c0243 Mon Sep 17 00:00:00 2001 From: Zak <137602160+bebrasmell@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:42:07 +0800 Subject: [PATCH] Update README.md to contain a working basic setup This configuration is the only working without extending VoiceConnectionClass for Android --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index be61547f..7902ac26 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,16 @@ const options = { RNCallKeep.setup(options).then(accepted => {}); ``` +> [note!] Please keep in mind that without your own modifications to Java code for Android, VoiceConnectionService class in particular, you have to specify these foreground service settings: +``` +{ + channelId: "io.wazo.callkeep.VoiceConnectionService", + channelName: "VoiceConnectionService", + notificationTitle: "", + notificationIcon: "", +} +``` + iOS only. Alternative on iOS you can perform setup in `AppDelegate.m`. Doing this allows capturing events prior to the react native event bridge being up. Please be aware that calling setup in `AppDelegate.m` will ignore any subsequent calls to `RNCallKeep.setup();`.