@telnyx/react-voice-commons-sdk 0.1.4 → 0.1.6
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/CHANGELOG.md +31 -16
- package/README.md +469 -469
- package/TelnyxVoiceCommons.podspec +31 -31
- package/android/build/.transforms/35d64beab84343a7420320f8057c40b9/results.bin +1 -0
- package/android/build/.transforms/35d64beab84343a7420320f8057c40b9/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/results.bin +1 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/BuildConfig.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/CallForegroundService$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/CallForegroundService.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgePackage.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnManager.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/8ebc6907344eccd2b9c23d903854d4fb/results.bin +1 -0
- package/android/build/.transforms/8ebc6907344eccd2b9c23d903854d4fb/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/results.bin +1 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/BuildConfig.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgePackage.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnManager.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/telnyx/react_voice_commons/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +42 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/telnyx/react_voice_commons/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +75 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +42 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/CallForegroundService$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/CallForegroundService.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxMainActivity.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationHelper.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgeModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgePackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +82 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/CallForegroundService$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/CallForegroundService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxMainActivity.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationHelper.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgeModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgePackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnManager.class +0 -0
- package/android/build.gradle +45 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +38 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/CallForegroundService.kt +83 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.kt +179 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxMainActivity.kt +216 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.kt +177 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxNotificationHelper.kt +277 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnBridgeModule.kt +247 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnBridgePackage.kt +17 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnManager.kt +154 -0
- package/ios/CallKitBridge.m +43 -43
- package/ios/CallKitBridge.swift +874 -874
- package/ios/VoicePnBridge.m +30 -30
- package/ios/VoicePnBridge.swift +86 -86
- package/lib/callkit/callkit-coordinator.d.ts +114 -110
- package/lib/callkit/callkit-coordinator.js +706 -664
- package/lib/callkit/callkit.d.ts +41 -41
- package/lib/callkit/callkit.js +242 -252
- package/lib/callkit/index.js +47 -15
- package/lib/callkit/use-callkit.d.ts +19 -19
- package/lib/callkit/use-callkit.js +310 -270
- package/lib/context/TelnyxVoiceContext.d.ts +9 -9
- package/lib/context/TelnyxVoiceContext.js +13 -10
- package/lib/hooks/use-callkit-coordinator.d.ts +17 -9
- package/lib/hooks/use-callkit-coordinator.js +50 -45
- package/lib/hooks/useAppReadyNotifier.js +15 -13
- package/lib/hooks/useAppStateHandler.d.ts +11 -6
- package/lib/hooks/useAppStateHandler.js +110 -95
- package/lib/index.d.ts +21 -3
- package/lib/index.js +201 -50
- package/lib/internal/CallKitHandler.d.ts +6 -6
- package/lib/internal/CallKitHandler.js +104 -96
- package/lib/internal/callkit-manager.d.ts +57 -57
- package/lib/internal/callkit-manager.js +316 -299
- package/lib/internal/calls/call-state-controller.d.ts +78 -73
- package/lib/internal/calls/call-state-controller.js +326 -265
- package/lib/internal/session/session-manager.d.ts +71 -71
- package/lib/internal/session/session-manager.js +437 -360
- package/lib/internal/user-defaults-helpers.js +39 -49
- package/lib/internal/voice-pn-bridge.d.ts +112 -104
- package/lib/internal/voice-pn-bridge.js +193 -203
- package/lib/models/call-state.d.ts +46 -46
- package/lib/models/call-state.js +74 -70
- package/lib/models/call.d.ts +173 -157
- package/lib/models/call.js +492 -448
- package/lib/models/config.d.ts +18 -11
- package/lib/models/config.js +35 -37
- package/lib/models/connection-state.d.ts +10 -10
- package/lib/models/connection-state.js +16 -16
- package/lib/telnyx-voice-app.d.ts +28 -28
- package/lib/telnyx-voice-app.js +561 -509
- package/lib/telnyx-voip-client.d.ts +174 -167
- package/lib/telnyx-voip-client.js +397 -385
- package/package.json +116 -115
- package/src/callkit/callkit-coordinator.ts +830 -830
- package/src/internal/calls/call-state-controller.ts +407 -407
- package/src/internal/session/session-manager.ts +483 -483
- package/src/internal/voice-pn-bridge.ts +266 -266
- package/src/models/call-state.ts +105 -105
- package/src/models/call.ts +502 -502
- package/src/telnyx-voice-app.tsx +787 -788
- package/src/telnyx-voip-client.ts +551 -551
- package/src/types/telnyx-sdk.d.ts +93 -93
|
@@ -1,266 +1,266 @@
|
|
|
1
|
-
import { NativeModules, DeviceEventEmitter, EmitterSubscription } from 'react-native';
|
|
2
|
-
|
|
3
|
-
export interface CallActionEvent {
|
|
4
|
-
action: string;
|
|
5
|
-
callId?: string;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface VoicePnBridgeInterface {
|
|
10
|
-
getPendingPushAction(): Promise<{
|
|
11
|
-
action: string | null;
|
|
12
|
-
metadata: string | null;
|
|
13
|
-
}>;
|
|
14
|
-
setPendingPushAction(action: string, metadata: string): Promise<boolean>;
|
|
15
|
-
clearPendingPushAction(): Promise<boolean>;
|
|
16
|
-
|
|
17
|
-
// Call action methods (reliable @ReactMethod pattern)
|
|
18
|
-
getPendingCallAction(): Promise<{
|
|
19
|
-
action: string | null;
|
|
20
|
-
callId: string | null;
|
|
21
|
-
timestamp: number | null;
|
|
22
|
-
}>;
|
|
23
|
-
clearPendingCallAction(): Promise<boolean>;
|
|
24
|
-
|
|
25
|
-
// Call control methods (Android specific)
|
|
26
|
-
endCall(callId: string | null): Promise<boolean>;
|
|
27
|
-
showOngoingCallNotification(
|
|
28
|
-
callerName: string | null,
|
|
29
|
-
callerNumber: string | null,
|
|
30
|
-
callId: string | null
|
|
31
|
-
): Promise<boolean>;
|
|
32
|
-
hideOngoingCallNotification(): Promise<boolean>;
|
|
33
|
-
hideIncomingCallNotification(): Promise<boolean>;
|
|
34
|
-
|
|
35
|
-
// Additional UserDefaults methods
|
|
36
|
-
getVoipToken(): Promise<string | null>;
|
|
37
|
-
getPendingVoipPush(): Promise<string | null>;
|
|
38
|
-
clearPendingVoipPush(): Promise<boolean>;
|
|
39
|
-
getPendingVoipAction(): Promise<string | null>;
|
|
40
|
-
clearPendingVoipAction(): Promise<boolean>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const NativeBridge: VoicePnBridgeInterface = NativeModules.VoicePnBridge;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Enhanced VoicePnBridge with call control and event handling capabilities
|
|
47
|
-
*/
|
|
48
|
-
export class VoicePnBridge {
|
|
49
|
-
/**
|
|
50
|
-
* Get any pending push notification action from native side
|
|
51
|
-
*/
|
|
52
|
-
static async getPendingPushAction(): Promise<{ action?: string; metadata?: string }> {
|
|
53
|
-
try {
|
|
54
|
-
const result = await NativeBridge.getPendingPushAction();
|
|
55
|
-
return {
|
|
56
|
-
action: result?.action || undefined,
|
|
57
|
-
metadata: result?.metadata || undefined,
|
|
58
|
-
};
|
|
59
|
-
} catch (error) {
|
|
60
|
-
console.error('VoicePnBridge: Error getting pending push action:', error);
|
|
61
|
-
return {};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Set a pending push notification action to native side
|
|
67
|
-
*/
|
|
68
|
-
static async setPendingPushAction(action: string, metadata: string): Promise<boolean> {
|
|
69
|
-
try {
|
|
70
|
-
return await NativeBridge.setPendingPushAction(action, metadata);
|
|
71
|
-
} catch (error) {
|
|
72
|
-
console.error('VoicePnBridge: Error setting pending push action:', error);
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Get any pending call action from native side (reliable polling pattern)
|
|
79
|
-
*/
|
|
80
|
-
static async getPendingCallAction(): Promise<{
|
|
81
|
-
action?: string;
|
|
82
|
-
callId?: string;
|
|
83
|
-
timestamp?: number;
|
|
84
|
-
}> {
|
|
85
|
-
try {
|
|
86
|
-
const result = await NativeBridge.getPendingCallAction();
|
|
87
|
-
return {
|
|
88
|
-
action: result?.action || undefined,
|
|
89
|
-
callId: result?.callId || undefined,
|
|
90
|
-
timestamp: result?.timestamp || undefined,
|
|
91
|
-
};
|
|
92
|
-
} catch (error) {
|
|
93
|
-
console.error('VoicePnBridge: Error getting pending call action:', error);
|
|
94
|
-
return {};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Clear any pending call action
|
|
100
|
-
*/
|
|
101
|
-
static async clearPendingCallAction(): Promise<boolean> {
|
|
102
|
-
try {
|
|
103
|
-
return await NativeBridge.clearPendingCallAction();
|
|
104
|
-
} catch (error) {
|
|
105
|
-
console.error('VoicePnBridge: Error clearing pending call action:', error);
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Clear any pending push notification action
|
|
112
|
-
*/
|
|
113
|
-
static async clearPendingPushAction(): Promise<boolean> {
|
|
114
|
-
try {
|
|
115
|
-
return await NativeBridge.clearPendingPushAction();
|
|
116
|
-
} catch (error) {
|
|
117
|
-
console.error('VoicePnBridge: Error clearing pending push action:', error);
|
|
118
|
-
return false;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* React Native → Android: End/hang up the current call
|
|
124
|
-
* This will hide the ongoing call notification and notify the native side
|
|
125
|
-
*/
|
|
126
|
-
static async endCall(callId?: string): Promise<boolean> {
|
|
127
|
-
try {
|
|
128
|
-
return await NativeBridge.endCall(callId || null);
|
|
129
|
-
} catch (error) {
|
|
130
|
-
console.error('VoicePnBridge: Error ending call:', error);
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* React Native → Android: Show ongoing call notification to keep app alive
|
|
137
|
-
* Should be called when a call becomes active to prevent background termination
|
|
138
|
-
*/
|
|
139
|
-
static async showOngoingCallNotification(
|
|
140
|
-
callerName?: string,
|
|
141
|
-
callerNumber?: string,
|
|
142
|
-
callId?: string
|
|
143
|
-
): Promise<boolean> {
|
|
144
|
-
try {
|
|
145
|
-
return await NativeBridge.showOngoingCallNotification(
|
|
146
|
-
callerName || null,
|
|
147
|
-
callerNumber || null,
|
|
148
|
-
callId || null
|
|
149
|
-
);
|
|
150
|
-
} catch (error) {
|
|
151
|
-
console.error('VoicePnBridge: Error showing ongoing call notification:', error);
|
|
152
|
-
return false;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* React Native → Android: Hide ongoing call notification
|
|
158
|
-
* Should be called when a call ends to clean up notifications
|
|
159
|
-
*/
|
|
160
|
-
static async hideOngoingCallNotification(): Promise<boolean> {
|
|
161
|
-
try {
|
|
162
|
-
return await NativeBridge.hideOngoingCallNotification();
|
|
163
|
-
} catch (error) {
|
|
164
|
-
console.error('VoicePnBridge: Error hiding ongoing call notification:', error);
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* React Native → Android: Hide incoming call notification
|
|
171
|
-
* Useful for dismissing notifications when call is answered/rejected in app
|
|
172
|
-
*/
|
|
173
|
-
static async hideIncomingCallNotification(): Promise<boolean> {
|
|
174
|
-
try {
|
|
175
|
-
return await NativeBridge.hideIncomingCallNotification();
|
|
176
|
-
} catch (error) {
|
|
177
|
-
console.error('VoicePnBridge: Error hiding incoming call notification:', error);
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Get VoIP token from native storage
|
|
184
|
-
*/
|
|
185
|
-
static async getVoipToken(): Promise<string | null> {
|
|
186
|
-
try {
|
|
187
|
-
return await NativeBridge.getVoipToken();
|
|
188
|
-
} catch (error) {
|
|
189
|
-
console.error('VoicePnBridge: Error getting VoIP token:', error);
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Get pending VoIP push from native storage
|
|
196
|
-
*/
|
|
197
|
-
static async getPendingVoipPush(): Promise<string | null> {
|
|
198
|
-
try {
|
|
199
|
-
return await NativeBridge.getPendingVoipPush();
|
|
200
|
-
} catch (error) {
|
|
201
|
-
console.error('VoicePnBridge: Error getting pending VoIP push:', error);
|
|
202
|
-
return null;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Clear pending VoIP push from native storage
|
|
208
|
-
*/
|
|
209
|
-
static async clearPendingVoipPush(): Promise<boolean> {
|
|
210
|
-
try {
|
|
211
|
-
return await NativeBridge.clearPendingVoipPush();
|
|
212
|
-
} catch (error) {
|
|
213
|
-
console.error('VoicePnBridge: Error clearing pending VoIP push:', error);
|
|
214
|
-
return false;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Get pending VoIP action from native storage
|
|
220
|
-
*/
|
|
221
|
-
static async getPendingVoipAction(): Promise<string | null> {
|
|
222
|
-
try {
|
|
223
|
-
return await NativeBridge.getPendingVoipAction();
|
|
224
|
-
} catch (error) {
|
|
225
|
-
console.error('VoicePnBridge: Error getting pending VoIP action:', error);
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Clear pending VoIP action from native storage
|
|
232
|
-
*/
|
|
233
|
-
static async clearPendingVoipAction(): Promise<boolean> {
|
|
234
|
-
try {
|
|
235
|
-
return await NativeBridge.clearPendingVoipAction();
|
|
236
|
-
} catch (error) {
|
|
237
|
-
console.error('VoicePnBridge: Error clearing pending VoIP action:', error);
|
|
238
|
-
return false;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Android → React Native: Listen for immediate call action events from notification buttons
|
|
244
|
-
* Use this for active calls where immediate response is needed (e.g., ending ongoing calls)
|
|
245
|
-
*/
|
|
246
|
-
static addCallActionListener(listener: (event: CallActionEvent) => void): EmitterSubscription {
|
|
247
|
-
return DeviceEventEmitter.addListener('TelnyxCallAction', listener);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Remove call action listener
|
|
252
|
-
*/
|
|
253
|
-
static removeCallActionListener(subscription: EmitterSubscription): void {
|
|
254
|
-
subscription.remove();
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Remove all call action listeners
|
|
259
|
-
*/
|
|
260
|
-
static removeAllCallActionListeners(): void {
|
|
261
|
-
DeviceEventEmitter.removeAllListeners('TelnyxCallAction');
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// Export the native bridge for direct access if needed
|
|
266
|
-
export { NativeBridge as VoicePnBridgeNative };
|
|
1
|
+
import { NativeModules, DeviceEventEmitter, EmitterSubscription } from 'react-native';
|
|
2
|
+
|
|
3
|
+
export interface CallActionEvent {
|
|
4
|
+
action: string;
|
|
5
|
+
callId?: string;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface VoicePnBridgeInterface {
|
|
10
|
+
getPendingPushAction(): Promise<{
|
|
11
|
+
action: string | null;
|
|
12
|
+
metadata: string | null;
|
|
13
|
+
}>;
|
|
14
|
+
setPendingPushAction(action: string, metadata: string): Promise<boolean>;
|
|
15
|
+
clearPendingPushAction(): Promise<boolean>;
|
|
16
|
+
|
|
17
|
+
// Call action methods (reliable @ReactMethod pattern)
|
|
18
|
+
getPendingCallAction(): Promise<{
|
|
19
|
+
action: string | null;
|
|
20
|
+
callId: string | null;
|
|
21
|
+
timestamp: number | null;
|
|
22
|
+
}>;
|
|
23
|
+
clearPendingCallAction(): Promise<boolean>;
|
|
24
|
+
|
|
25
|
+
// Call control methods (Android specific)
|
|
26
|
+
endCall(callId: string | null): Promise<boolean>;
|
|
27
|
+
showOngoingCallNotification(
|
|
28
|
+
callerName: string | null,
|
|
29
|
+
callerNumber: string | null,
|
|
30
|
+
callId: string | null
|
|
31
|
+
): Promise<boolean>;
|
|
32
|
+
hideOngoingCallNotification(): Promise<boolean>;
|
|
33
|
+
hideIncomingCallNotification(): Promise<boolean>;
|
|
34
|
+
|
|
35
|
+
// Additional UserDefaults methods
|
|
36
|
+
getVoipToken(): Promise<string | null>;
|
|
37
|
+
getPendingVoipPush(): Promise<string | null>;
|
|
38
|
+
clearPendingVoipPush(): Promise<boolean>;
|
|
39
|
+
getPendingVoipAction(): Promise<string | null>;
|
|
40
|
+
clearPendingVoipAction(): Promise<boolean>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const NativeBridge: VoicePnBridgeInterface = NativeModules.VoicePnBridge;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Enhanced VoicePnBridge with call control and event handling capabilities
|
|
47
|
+
*/
|
|
48
|
+
export class VoicePnBridge {
|
|
49
|
+
/**
|
|
50
|
+
* Get any pending push notification action from native side
|
|
51
|
+
*/
|
|
52
|
+
static async getPendingPushAction(): Promise<{ action?: string; metadata?: string }> {
|
|
53
|
+
try {
|
|
54
|
+
const result = await NativeBridge.getPendingPushAction();
|
|
55
|
+
return {
|
|
56
|
+
action: result?.action || undefined,
|
|
57
|
+
metadata: result?.metadata || undefined,
|
|
58
|
+
};
|
|
59
|
+
} catch (error) {
|
|
60
|
+
console.error('VoicePnBridge: Error getting pending push action:', error);
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Set a pending push notification action to native side
|
|
67
|
+
*/
|
|
68
|
+
static async setPendingPushAction(action: string, metadata: string): Promise<boolean> {
|
|
69
|
+
try {
|
|
70
|
+
return await NativeBridge.setPendingPushAction(action, metadata);
|
|
71
|
+
} catch (error) {
|
|
72
|
+
console.error('VoicePnBridge: Error setting pending push action:', error);
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Get any pending call action from native side (reliable polling pattern)
|
|
79
|
+
*/
|
|
80
|
+
static async getPendingCallAction(): Promise<{
|
|
81
|
+
action?: string;
|
|
82
|
+
callId?: string;
|
|
83
|
+
timestamp?: number;
|
|
84
|
+
}> {
|
|
85
|
+
try {
|
|
86
|
+
const result = await NativeBridge.getPendingCallAction();
|
|
87
|
+
return {
|
|
88
|
+
action: result?.action || undefined,
|
|
89
|
+
callId: result?.callId || undefined,
|
|
90
|
+
timestamp: result?.timestamp || undefined,
|
|
91
|
+
};
|
|
92
|
+
} catch (error) {
|
|
93
|
+
console.error('VoicePnBridge: Error getting pending call action:', error);
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Clear any pending call action
|
|
100
|
+
*/
|
|
101
|
+
static async clearPendingCallAction(): Promise<boolean> {
|
|
102
|
+
try {
|
|
103
|
+
return await NativeBridge.clearPendingCallAction();
|
|
104
|
+
} catch (error) {
|
|
105
|
+
console.error('VoicePnBridge: Error clearing pending call action:', error);
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Clear any pending push notification action
|
|
112
|
+
*/
|
|
113
|
+
static async clearPendingPushAction(): Promise<boolean> {
|
|
114
|
+
try {
|
|
115
|
+
return await NativeBridge.clearPendingPushAction();
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error('VoicePnBridge: Error clearing pending push action:', error);
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* React Native → Android: End/hang up the current call
|
|
124
|
+
* This will hide the ongoing call notification and notify the native side
|
|
125
|
+
*/
|
|
126
|
+
static async endCall(callId?: string): Promise<boolean> {
|
|
127
|
+
try {
|
|
128
|
+
return await NativeBridge.endCall(callId || null);
|
|
129
|
+
} catch (error) {
|
|
130
|
+
console.error('VoicePnBridge: Error ending call:', error);
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* React Native → Android: Show ongoing call notification to keep app alive
|
|
137
|
+
* Should be called when a call becomes active to prevent background termination
|
|
138
|
+
*/
|
|
139
|
+
static async showOngoingCallNotification(
|
|
140
|
+
callerName?: string,
|
|
141
|
+
callerNumber?: string,
|
|
142
|
+
callId?: string
|
|
143
|
+
): Promise<boolean> {
|
|
144
|
+
try {
|
|
145
|
+
return await NativeBridge.showOngoingCallNotification(
|
|
146
|
+
callerName || null,
|
|
147
|
+
callerNumber || null,
|
|
148
|
+
callId || null
|
|
149
|
+
);
|
|
150
|
+
} catch (error) {
|
|
151
|
+
console.error('VoicePnBridge: Error showing ongoing call notification:', error);
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* React Native → Android: Hide ongoing call notification
|
|
158
|
+
* Should be called when a call ends to clean up notifications
|
|
159
|
+
*/
|
|
160
|
+
static async hideOngoingCallNotification(): Promise<boolean> {
|
|
161
|
+
try {
|
|
162
|
+
return await NativeBridge.hideOngoingCallNotification();
|
|
163
|
+
} catch (error) {
|
|
164
|
+
console.error('VoicePnBridge: Error hiding ongoing call notification:', error);
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* React Native → Android: Hide incoming call notification
|
|
171
|
+
* Useful for dismissing notifications when call is answered/rejected in app
|
|
172
|
+
*/
|
|
173
|
+
static async hideIncomingCallNotification(): Promise<boolean> {
|
|
174
|
+
try {
|
|
175
|
+
return await NativeBridge.hideIncomingCallNotification();
|
|
176
|
+
} catch (error) {
|
|
177
|
+
console.error('VoicePnBridge: Error hiding incoming call notification:', error);
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Get VoIP token from native storage
|
|
184
|
+
*/
|
|
185
|
+
static async getVoipToken(): Promise<string | null> {
|
|
186
|
+
try {
|
|
187
|
+
return await NativeBridge.getVoipToken();
|
|
188
|
+
} catch (error) {
|
|
189
|
+
console.error('VoicePnBridge: Error getting VoIP token:', error);
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Get pending VoIP push from native storage
|
|
196
|
+
*/
|
|
197
|
+
static async getPendingVoipPush(): Promise<string | null> {
|
|
198
|
+
try {
|
|
199
|
+
return await NativeBridge.getPendingVoipPush();
|
|
200
|
+
} catch (error) {
|
|
201
|
+
console.error('VoicePnBridge: Error getting pending VoIP push:', error);
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Clear pending VoIP push from native storage
|
|
208
|
+
*/
|
|
209
|
+
static async clearPendingVoipPush(): Promise<boolean> {
|
|
210
|
+
try {
|
|
211
|
+
return await NativeBridge.clearPendingVoipPush();
|
|
212
|
+
} catch (error) {
|
|
213
|
+
console.error('VoicePnBridge: Error clearing pending VoIP push:', error);
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Get pending VoIP action from native storage
|
|
220
|
+
*/
|
|
221
|
+
static async getPendingVoipAction(): Promise<string | null> {
|
|
222
|
+
try {
|
|
223
|
+
return await NativeBridge.getPendingVoipAction();
|
|
224
|
+
} catch (error) {
|
|
225
|
+
console.error('VoicePnBridge: Error getting pending VoIP action:', error);
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Clear pending VoIP action from native storage
|
|
232
|
+
*/
|
|
233
|
+
static async clearPendingVoipAction(): Promise<boolean> {
|
|
234
|
+
try {
|
|
235
|
+
return await NativeBridge.clearPendingVoipAction();
|
|
236
|
+
} catch (error) {
|
|
237
|
+
console.error('VoicePnBridge: Error clearing pending VoIP action:', error);
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Android → React Native: Listen for immediate call action events from notification buttons
|
|
244
|
+
* Use this for active calls where immediate response is needed (e.g., ending ongoing calls)
|
|
245
|
+
*/
|
|
246
|
+
static addCallActionListener(listener: (event: CallActionEvent) => void): EmitterSubscription {
|
|
247
|
+
return DeviceEventEmitter.addListener('TelnyxCallAction', listener);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Remove call action listener
|
|
252
|
+
*/
|
|
253
|
+
static removeCallActionListener(subscription: EmitterSubscription): void {
|
|
254
|
+
subscription.remove();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Remove all call action listeners
|
|
259
|
+
*/
|
|
260
|
+
static removeAllCallActionListeners(): void {
|
|
261
|
+
DeviceEventEmitter.removeAllListeners('TelnyxCallAction');
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Export the native bridge for direct access if needed
|
|
266
|
+
export { NativeBridge as VoicePnBridgeNative };
|