twilio / twilio-voice-react-native-app

Other
38 stars 21 forks source link

android not working #135

Closed GaganJatana55 closed 10 months ago

GaganJatana55 commented 10 months ago
Screenshot 2024-01-26 at 12 31 39 AM

package json using is: { "name": "zing-app-ui", "version": "1.0.0", "main": "index.js", "scripts": { "start": "expo start --dev-client", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web", "pods": "cd example && pod-install --quiet", "test:eslint": "echo \"\033[33mRunning eslint check\" && eslint .", "test:tsc": "echo \"\033[33mRunning typescript check\" && tsc" }, "dependencies": { "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@dietime/react-native-date-picker": "^1.2.1", "@expo/webpack-config": "~18.0.1", "@fanchenbao/react-native-scroll-indicator": "^0.2.1", "@pdftron/webviewer": "^8.12.1", "@react-native-async-storage/async-storage": "1.17.11", "@react-native-community/netinfo": "9.3.7", "@react-native-community/slider": "4.4.2", "@react-native/metro-config": "^0.73.2", "@twilio/video-processors": "^2.0.0", "@twilio/voice-react-native-sdk": "^1.0.0-beta.4", "@twilio/voice-sdk": "^2.7.1", "axios": "^1.4.0", "dayjs": "^1.11.9", "expo": "~48.0.21", "expo-auth-session": "~4.0.3", "expo-av": "~13.2.1", "expo-constants": "~14.2.1", "expo-crypto": "~12.2.1", "expo-document-picker": "~11.5.4", "expo-file-system": "~15.2.2", "expo-font": "~11.1.1", "expo-image-picker": "~14.1.1", "expo-linear-gradient": "~12.1.2", "expo-linking": "~4.0.1", "expo-router": "^1.0.0", "expo-splash-screen": "~0.18.2", "expo-status-bar": "~1.4.4", "formik": "^2.4.2", "i18next": "^23.5.1", "lodash": "^4.17.21", "moment": "^2.29.4", "moment-timezone": "^0.5.43", "nativewind": "^2.0.11", "pod-install": "^0.1.39", "pusher-js": "^8.3.0", "qs": "^6.11.2", "react": "18.2.0", "react-dom": "18.2.0", "react-dropzone": "^14.2.3", "react-file-picker": "^0.0.6", "react-i18next": "^13.2.1", "react-native": "0.71.14", "react-native-big-calendar": "^4.5.0", "react-native-calendars": "^1.1300.0", "react-native-collapsible": "^1.6.1", "react-native-date-picker": "^4.3.3", "react-native-device-info": "^10.11.0", "react-native-document-picker": "^4.3.0", "react-native-draggable": "^3.3.0", "react-native-gesture-handler": "~2.9.0", "react-native-gridview": "^0.1.2", "react-native-indicators": "^0.17.0", "react-native-pager-view": "6.1.2", "react-native-popable": "^0.4.3", "react-native-popover-view": "^5.1.8", "react-native-reanimated": "2.17.0", "react-native-reanimated-carousel": "^3.5.1", "react-native-safe-area-context": "4.5.0", "react-native-screens": "~3.20.0", "react-native-simple-radio-button": "^2.7.4", "react-native-tab-view": "^3.5.2", "react-native-toast-message": "^2.1.6", "react-native-twilio-video-webrtc": "^3.2.0", "react-native-web": "~0.18.10", "react-outside-click-handler": "^1.3.0", "react-phone-number-input": "^3.3.7", "react-timer-hook": "^3.0.7", "rn-country-dropdown-picker": "^2.1.8", "slugify": "^1.6.6", "twilio": "^4.15.0", "twilio-video": "^2.27.0", "twrnc": "^3.6.4", "use-file-picker": "^2.1.1", "usehooks-ts": "^2.9.1", "yup": "^1.2.0", "zustand": "^4.3.9" }, "devDependencies": { "@babel/core": "^7.20.2", "@types/react": "~18.0.27", "@types/react-native": "^0.72.2", "@typescript-eslint/eslint-plugin": "^5.60.1", "@typescript-eslint/parser": "^5.60.1", "autoprefixer": "^10.4.14", "eslint": "^8.43.0", "eslint-config-prettier": "^8.8.0", "eslint-config-universe": "^11.2.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "postcss": "^8.4.26", "postcss-loader": "^4.2.0", "prettier": "^2.8.8", "prettier-plugin-tailwindcss": "^0.3.0", "react-native-dotenv": "^3.4.9", "tailwindcss": "3.3.2", "typescript": "^4.9.4" }, "overrides": { "metro": "0.76.0", "metro-resolver": "0.76.0" }, "private": true, "volta": { "node": "14.21.3" }, "engines": { "node": "14.21.1" }, "resolutions": { "@babel/core": "^7.20.2", "babel-loader": "^8.3.0" } }

mhuynh5757 commented 10 months ago

Hi @GaganJatana55 thanks for reaching out. It doesn't seem like you're running a fork of the Twilio Voice RN SDK Reference App, but your own Expo application. In that case, it would be more appropriate to move this issue to that project instead.

To help you with your issue, please refer to the native Android code we implement in the Reference App under the app/android/ folder. There's modifications you need to do to your MainActivity.java and MainApplication.java files that will solve this issue.

I am going to close this issue for now, please reach out in the SDK repo if you need further assistance: https://github.com/twilio/twilio-voice-react-native