@telnyx/react-voice-commons-sdk 0.1.5 → 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.
Files changed (183) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/android/build/.transforms/35d64beab84343a7420320f8057c40b9/results.bin +1 -0
  3. package/android/build/.transforms/35d64beab84343a7420320f8057c40b9/transformed/classes/classes_dex/classes.dex +0 -0
  4. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/results.bin +1 -0
  5. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/BuildConfig.dex +0 -0
  6. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/CallForegroundService$Companion.dex +0 -0
  7. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/CallForegroundService.dex +0 -0
  8. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.dex +0 -0
  9. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.dex +0 -0
  10. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity.dex +0 -0
  11. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.dex +0 -0
  12. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.dex +0 -0
  13. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper.dex +0 -0
  14. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.dex +0 -0
  15. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule.dex +0 -0
  16. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgePackage.dex +0 -0
  17. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnManager.dex +0 -0
  18. package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  19. package/android/build/.transforms/8ebc6907344eccd2b9c23d903854d4fb/results.bin +1 -0
  20. package/android/build/.transforms/8ebc6907344eccd2b9c23d903854d4fb/transformed/classes/classes_dex/classes.dex +0 -0
  21. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/results.bin +1 -0
  22. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/BuildConfig.dex +0 -0
  23. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.dex +0 -0
  24. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.dex +0 -0
  25. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity.dex +0 -0
  26. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.dex +0 -0
  27. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.dex +0 -0
  28. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper.dex +0 -0
  29. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule.dex +0 -0
  30. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgePackage.dex +0 -0
  31. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnManager.dex +0 -0
  32. package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  33. package/android/build/generated/source/buildConfig/debug/com/telnyx/react_voice_commons/BuildConfig.java +10 -0
  34. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +42 -0
  35. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  36. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  37. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  38. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  39. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  40. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  41. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  42. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  43. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  44. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  45. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  46. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
  47. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/telnyx/react_voice_commons/BuildConfig.class +0 -0
  48. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
  49. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +75 -0
  50. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +42 -0
  51. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  52. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  53. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/BuildConfig.class +0 -0
  55. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/CallForegroundService$Companion.class +0 -0
  56. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/CallForegroundService.class +0 -0
  57. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.class +0 -0
  58. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.class +0 -0
  59. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxMainActivity.class +0 -0
  60. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.class +0 -0
  61. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.class +0 -0
  62. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationHelper.class +0 -0
  63. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.class +0 -0
  64. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgeModule.class +0 -0
  65. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgePackage.class +0 -0
  66. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnManager.class +0 -0
  67. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  68. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  157. package/android/build/outputs/logs/manifest-merger-debug-report.txt +82 -0
  158. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  159. package/android/build/tmp/kotlin-classes/debug/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
  160. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/CallForegroundService$Companion.class +0 -0
  161. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/CallForegroundService.class +0 -0
  162. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.class +0 -0
  163. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.class +0 -0
  164. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxMainActivity.class +0 -0
  165. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.class +0 -0
  166. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.class +0 -0
  167. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationHelper.class +0 -0
  168. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.class +0 -0
  169. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgeModule.class +0 -0
  170. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgePackage.class +0 -0
  171. package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnManager.class +0 -0
  172. package/android/build.gradle +45 -0
  173. package/android/local.properties +8 -0
  174. package/android/src/main/AndroidManifest.xml +38 -0
  175. package/android/src/main/java/com/telnyx/react_voice_commons/CallForegroundService.kt +83 -0
  176. package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.kt +179 -0
  177. package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxMainActivity.kt +216 -0
  178. package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.kt +177 -0
  179. package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxNotificationHelper.kt +277 -0
  180. package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnBridgeModule.kt +247 -0
  181. package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnBridgePackage.kt +17 -0
  182. package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnManager.kt +154 -0
  183. package/package.json +2 -1
@@ -0,0 +1,82 @@
1
+ -- Merging decision tree log ---
2
+ manifest
3
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:2:1-38:12
4
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:2:1-38:12
5
+ package
6
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml
7
+ xmlns:android
8
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:2:11-69
9
+ uses-permission#android.permission.INTERNET
10
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:5:5-67
11
+ android:name
12
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:5:22-64
13
+ uses-permission#android.permission.WAKE_LOCK
14
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:6:5-68
15
+ android:name
16
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:6:22-65
17
+ uses-permission#android.permission.VIBRATE
18
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:7:5-66
19
+ android:name
20
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:7:22-63
21
+ uses-permission#android.permission.RECORD_AUDIO
22
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:10:5-71
23
+ android:name
24
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:10:22-68
25
+ uses-permission#android.permission.MODIFY_AUDIO_SETTINGS
26
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:11:5-80
27
+ android:name
28
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:11:22-77
29
+ uses-permission#android.permission.ACCESS_NETWORK_STATE
30
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:12:5-79
31
+ android:name
32
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:12:22-76
33
+ uses-permission#android.permission.FOREGROUND_SERVICE
34
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:15:5-77
35
+ android:name
36
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:15:22-74
37
+ uses-permission#android.permission.FOREGROUND_SERVICE_PHONE_CALL
38
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:16:5-88
39
+ android:name
40
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:16:22-85
41
+ uses-permission#android.permission.FOREGROUND_SERVICE_MICROPHONE
42
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:17:5-88
43
+ android:name
44
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:17:22-85
45
+ uses-permission#android.permission.MANAGE_OWN_CALLS
46
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:20:5-75
47
+ android:name
48
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:20:22-72
49
+ uses-permission#android.permission.USE_FULL_SCREEN_INTENT
50
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:21:5-81
51
+ android:name
52
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:21:22-78
53
+ uses-permission#android.permission.POST_NOTIFICATIONS
54
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:22:5-77
55
+ android:name
56
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:22:22-74
57
+ uses-feature#android.hardware.microphone
58
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:25:5-27:35
59
+ android:required
60
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:27:9-32
61
+ android:name
62
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:26:9-51
63
+ application
64
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:29:5-36:19
65
+ service#com.telnyx.react_voice_commons.CallForegroundService
66
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:31:9-35:68
67
+ android:enabled
68
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:33:13-35
69
+ android:exported
70
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:34:13-37
71
+ android:foregroundServiceType
72
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:35:13-65
73
+ android:name
74
+ ADDED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml:32:13-50
75
+ uses-sdk
76
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml reason: use-sdk injection requested
77
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml
78
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml
79
+ android:targetSdkVersion
80
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml
81
+ android:minSdkVersion
82
+ INJECTED from /Users/isaacakakpo/Documents/rtc_prod/react-voice-commons/node_modules/@telnyx/react-voice-commons-sdk/android/src/main/AndroidManifest.xml
@@ -0,0 +1,45 @@
1
+ apply plugin: 'com.android.library'
2
+ apply plugin: 'kotlin-android'
3
+
4
+ android {
5
+ namespace 'com.telnyx.react_voice_commons'
6
+ compileSdk 34
7
+
8
+ defaultConfig {
9
+ minSdk 21
10
+ targetSdk 34
11
+ versionCode 1
12
+ versionName "1.0"
13
+ }
14
+
15
+ compileOptions {
16
+ sourceCompatibility JavaVersion.VERSION_17
17
+ targetCompatibility JavaVersion.VERSION_17
18
+ }
19
+
20
+ kotlinOptions {
21
+ jvmTarget = "17"
22
+ }
23
+
24
+ sourceSets {
25
+ main {
26
+ java.srcDirs += 'voice-pn-module/src/main/java'
27
+ }
28
+ }
29
+
30
+ buildTypes {
31
+ release {
32
+ minifyEnabled false
33
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34
+ }
35
+ }
36
+ }
37
+
38
+ dependencies {
39
+ implementation "com.google.firebase:firebase-messaging:23.1.2"
40
+ implementation "androidx.core:core-ktx:1.8.0"
41
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.21"
42
+
43
+ // React Native dependencies
44
+ implementation "com.facebook.react:react-native:+"
45
+ }
@@ -0,0 +1,8 @@
1
+ ## This file must *NOT* be checked into Version Control Systems,
2
+ # as it contains information specific to your local configuration.
3
+ #
4
+ # Location of the SDK. This is only used by Gradle.
5
+ # For customization when using a Version Control System, please read the
6
+ # header note.
7
+ #Fri Oct 10 13:08:40 CEST 2025
8
+ sdk.dir=/Users/isaacakakpo/Library/Android/sdk
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
+
4
+ <!-- Basic permissions that this module needs -->
5
+ <uses-permission android:name="android.permission.INTERNET" />
6
+ <uses-permission android:name="android.permission.WAKE_LOCK" />
7
+ <uses-permission android:name="android.permission.VIBRATE" />
8
+
9
+ <!-- WebRTC and voice call permissions -->
10
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
11
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
12
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
13
+
14
+ <!-- Background execution permissions for call handling -->
15
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
16
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />
17
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
18
+
19
+ <!-- Call management permissions -->
20
+ <uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
21
+ <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
22
+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
23
+
24
+ <!-- Hardware features -->
25
+ <uses-feature
26
+ android:name="android.hardware.microphone"
27
+ android:required="true" />
28
+
29
+ <application>
30
+ <!-- Foreground service for keeping WebRTC connections alive during calls -->
31
+ <service
32
+ android:name=".CallForegroundService"
33
+ android:enabled="true"
34
+ android:exported="false"
35
+ android:foregroundServiceType="phoneCall|microphone" />
36
+ </application>
37
+
38
+ </manifest>
@@ -0,0 +1,83 @@
1
+ package com.telnyx.react_voice_commons
2
+
3
+ import android.app.Service
4
+ import android.content.Intent
5
+ import android.os.IBinder
6
+ import android.util.Log
7
+
8
+ /**
9
+ * Foreground service to keep WebRTC connections alive during calls
10
+ * This service prevents the system from killing the app during active calls
11
+ */
12
+ class CallForegroundService : Service() {
13
+ companion object {
14
+ private const val TAG = "CallForegroundService"
15
+ const val ACTION_START_FOREGROUND_SERVICE = "START_FOREGROUND_SERVICE"
16
+ const val ACTION_STOP_FOREGROUND_SERVICE = "STOP_FOREGROUND_SERVICE"
17
+
18
+ const val EXTRA_CALLER_NAME = "caller_name"
19
+ const val EXTRA_CALLER_NUMBER = "caller_number"
20
+ const val EXTRA_CALL_ID = "call_id"
21
+ }
22
+
23
+ override fun onBind(intent: Intent?): IBinder? {
24
+ return null
25
+ }
26
+
27
+ override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
28
+ when (intent?.action) {
29
+ ACTION_START_FOREGROUND_SERVICE -> {
30
+ Log.d(TAG, "Starting foreground service for call")
31
+ startAsForegroundService(intent)
32
+ }
33
+ ACTION_STOP_FOREGROUND_SERVICE -> {
34
+ Log.d(TAG, "Stopping foreground service")
35
+ stopAsForegroundService()
36
+ }
37
+ }
38
+
39
+ // Restart the service if it's killed by the system
40
+ return START_STICKY
41
+ }
42
+
43
+ private fun startAsForegroundService(intent: Intent) {
44
+ val callerName = intent.getStringExtra(EXTRA_CALLER_NAME) ?: "Unknown Caller"
45
+ val callerNumber = intent.getStringExtra(EXTRA_CALLER_NUMBER) ?: ""
46
+ val callId = intent.getStringExtra(EXTRA_CALL_ID) ?: "unknown"
47
+
48
+ try {
49
+ // Create ongoing call notification
50
+ val notificationHelper = TelnyxNotificationHelper(this)
51
+ val notification = notificationHelper.createOngoingCallNotification(callerName, callerNumber, callId)
52
+
53
+ // Start foreground service with the notification
54
+ startForeground(TelnyxNotificationHelper.ONGOING_CALL_NOTIFICATION_ID, notification)
55
+
56
+ Log.d(TAG, "Foreground service started with ongoing call notification")
57
+ } catch (e: Exception) {
58
+ Log.e(TAG, "Error starting foreground service", e)
59
+ // Stop the service if we can't create the notification
60
+ stopSelf()
61
+ }
62
+ }
63
+
64
+ private fun stopAsForegroundService() {
65
+ try {
66
+ // Hide the ongoing call notification
67
+ TelnyxNotificationHelper.hideOngoingCallNotificationFromContext(this)
68
+
69
+ // Stop foreground service
70
+ stopForeground(true)
71
+ stopSelf()
72
+
73
+ Log.d(TAG, "Foreground service stopped")
74
+ } catch (e: Exception) {
75
+ Log.e(TAG, "Error stopping foreground service", e)
76
+ }
77
+ }
78
+
79
+ override fun onDestroy() {
80
+ super.onDestroy()
81
+ Log.d(TAG, "CallForegroundService destroyed")
82
+ }
83
+ }
@@ -0,0 +1,179 @@
1
+ package com.telnyx.react_voice_commons
2
+
3
+ import android.util.Log
4
+ import com.google.firebase.messaging.FirebaseMessagingService
5
+ import com.google.firebase.messaging.RemoteMessage
6
+
7
+ /**
8
+ * FCM Service for handling Telnyx voice push notifications
9
+ * This service should be extended by the main app's FCM service
10
+ */
11
+ open class TelnyxFirebaseMessagingService : FirebaseMessagingService() {
12
+ private val tag = "TelnyxFCMService"
13
+
14
+ override fun onMessageReceived(remoteMessage: RemoteMessage) {
15
+ super.onMessageReceived(remoteMessage)
16
+
17
+ Log.d(tag, "FCM message received from: ${remoteMessage.from}")
18
+ Log.d(tag, "FCM message data: ${remoteMessage.data}")
19
+
20
+ // Check if this is a Telnyx voice push notification
21
+ val isTelnyxVoiceMessage = remoteMessage.data.containsKey("metadata") ||
22
+ remoteMessage.data.containsKey("caller_id_name") ||
23
+ remoteMessage.data.containsKey("caller_name") ||
24
+ remoteMessage.data.containsKey("call_id") ||
25
+ remoteMessage.data.containsKey("telnyx_call_id") ||
26
+ remoteMessage.data.get("message_type") == "voice" ||
27
+ remoteMessage.data.get("message") == "Incoming call!" ||
28
+ remoteMessage.data.get("message") == "Missed call!"
29
+
30
+ if (isTelnyxVoiceMessage) {
31
+ Log.d(tag, "Handling as Telnyx voice push notification")
32
+
33
+ // Check if this is a missed call notification
34
+ val isMissedCall = remoteMessage.data.get("message") == "Missed call!"
35
+ if (isMissedCall) {
36
+ handleTelnyxMissedCall(remoteMessage)
37
+ } else {
38
+ handleTelnyxVoicePush(remoteMessage)
39
+ }
40
+ } else {
41
+ Log.d(tag, "Non-Telnyx message, delegating to handleNonTelnyxMessage")
42
+ handleNonTelnyxMessage(remoteMessage)
43
+ }
44
+ }
45
+
46
+ override fun onNewToken(token: String) {
47
+ super.onNewToken(token)
48
+ Log.d(tag, "FCM token refreshed: $token")
49
+ handleTokenRefresh(token)
50
+ }
51
+
52
+ /**
53
+ * Handle Telnyx missed call notifications
54
+ */
55
+ protected open fun handleTelnyxMissedCall(remoteMessage: RemoteMessage) {
56
+ try {
57
+ Log.d(tag, "Processing Telnyx missed call notification")
58
+
59
+ // Extract caller information from metadata or top-level data
60
+ var callId = "unknown"
61
+ var callerName = "Unknown Caller"
62
+ var callerNumber = ""
63
+
64
+ // First try to parse metadata JSON if it exists
65
+ val metadataJson = remoteMessage.data["metadata"]
66
+ if (metadataJson != null) {
67
+ try {
68
+ Log.d(tag, "Parsing missed call metadata JSON: $metadataJson")
69
+ val metadata = org.json.JSONObject(metadataJson)
70
+ callId = metadata.optString("call_id", "unknown")
71
+ callerName = metadata.optString("caller_name", "Unknown Caller")
72
+ callerNumber = metadata.optString("caller_number", "")
73
+ Log.d(tag, "Extracted from metadata - callId: $callId, callerName: $callerName, callerNumber: $callerNumber")
74
+ } catch (e: Exception) {
75
+ Log.e(tag, "Error parsing missed call metadata JSON", e)
76
+ }
77
+ }
78
+
79
+ // Fallback to top-level data if metadata parsing failed or doesn't exist
80
+ if (callId == "unknown") {
81
+ callId = remoteMessage.data["call_id"] ?: remoteMessage.data["telnyx_call_id"] ?: "unknown"
82
+ callerName = remoteMessage.data["caller_id_name"] ?: remoteMessage.data["caller_name"] ?: "Unknown Caller"
83
+ callerNumber = remoteMessage.data["caller_id_number"] ?: remoteMessage.data["caller_number"] ?: ""
84
+ Log.d(tag, "Using top-level data for missed call - callId: $callId, callerName: $callerName, callerNumber: $callerNumber")
85
+ }
86
+
87
+ // Show missed call notification (this will hide any existing incoming call notification)
88
+ val notificationHelper = TelnyxNotificationHelper(this)
89
+ notificationHelper.showMissedCallNotification(callerName, callerNumber, callId)
90
+
91
+ Log.d(tag, "Telnyx missed call notification processed successfully")
92
+ } catch (e: Exception) {
93
+ Log.e(tag, "Error handling Telnyx missed call notification", e)
94
+ }
95
+ }
96
+
97
+ /**
98
+ * Handle Telnyx voice push notifications
99
+ */
100
+ protected open fun handleTelnyxVoicePush(remoteMessage: RemoteMessage) {
101
+ try {
102
+ Log.d(tag, "Processing Telnyx voice push using VoicePnManager")
103
+
104
+ // Extract caller information from metadata or top-level data
105
+ var callId = "unknown"
106
+ var callerName = "Unknown Caller"
107
+ var callerNumber = ""
108
+
109
+ // First try to parse metadata JSON if it exists
110
+ val metadataJson = remoteMessage.data["metadata"]
111
+ if (metadataJson != null) {
112
+ try {
113
+ Log.d(tag, "Parsing metadata JSON: $metadataJson")
114
+ val metadata = org.json.JSONObject(metadataJson)
115
+ callId = metadata.optString("call_id", "unknown")
116
+ callerName = metadata.optString("caller_name", "Unknown Caller")
117
+ callerNumber = metadata.optString("caller_number", "")
118
+ Log.d(tag, "Extracted from metadata - callId: $callId, callerName: $callerName, callerNumber: $callerNumber")
119
+ } catch (e: Exception) {
120
+ Log.e(tag, "Error parsing metadata JSON", e)
121
+ // Fall back to top-level data if metadata parsing fails
122
+ }
123
+ }
124
+
125
+ // Fallback to top-level data if metadata parsing failed or doesn't exist
126
+ if (callId == "unknown") {
127
+ callId = remoteMessage.data["call_id"] ?: remoteMessage.data["telnyx_call_id"] ?: "unknown"
128
+ callerName = remoteMessage.data["caller_id_name"] ?: remoteMessage.data["caller_name"] ?: "Unknown Caller"
129
+ callerNumber = remoteMessage.data["caller_id_number"] ?: remoteMessage.data["caller_number"] ?: ""
130
+ Log.d(tag, "Using top-level data - callId: $callId, callerName: $callerName, callerNumber: $callerNumber")
131
+ }
132
+
133
+
134
+ var metadata = ""
135
+
136
+ // Extract metadata using the same approach as official Telnyx service
137
+ try {
138
+ val params = remoteMessage.data
139
+ val objects = org.json.JSONObject(params as Map<*, *>)
140
+ metadata = objects.getString( "metadata")
141
+
142
+ Log.d(tag, "Extracted FCM metadata string: $metadata")
143
+ } catch (e: Exception) {
144
+ Log.e(tag, "Error extracting metadata from FCM data: ${e.message}")
145
+
146
+ // Fallback to simple JSON if metadata extraction fails
147
+ metadata = org.json.JSONObject().apply {
148
+ put("call_id", callId)
149
+ put("caller_name", callerName)
150
+ put("caller_number", callerNumber)
151
+ }.toString()
152
+
153
+ Log.d(tag, "Using fallback metadata: $metadata")
154
+ }
155
+ //VoicePnManager.setPendingPushAction(this, "incoming_call", metadata)
156
+
157
+ // Show notification using dynamic class resolution
158
+ val notificationHelper = TelnyxNotificationHelper(this)
159
+ notificationHelper.showIncomingCallNotification(callerName, callerNumber, callId, metadata)
160
+ Log.d(tag, "Telnyx voice push processed successfully")
161
+ } catch (e: Exception) {
162
+ Log.e(tag, "Error handling Telnyx voice push notification", e)
163
+ }
164
+ }
165
+
166
+ /**
167
+ * Handle non-Telnyx messages - override this in your app's FCM service if needed
168
+ */
169
+ protected open fun handleNonTelnyxMessage(remoteMessage: RemoteMessage) {
170
+ Log.d(tag, "Default non-Telnyx message handler - override this method if needed")
171
+ }
172
+
173
+ /**
174
+ * Handle FCM token refresh - override this in your app's FCM service if needed
175
+ */
176
+ protected open fun handleTokenRefresh(token: String) {
177
+ Log.d(tag, "Default token refresh handler - override this method if needed")
178
+ }
179
+ }