Comments (6)
I work on the Programmable Voice SDKs and can provide some guidance on this issue.
Passing custom parameters from the Android or iOS SDK to the server application is supported. However, propagating these custom parameters into the Twilio helper library to another client from your server code is not (this is a feature that has been requested and is in our backlog). If your server application requires additional context you are welcome to add custom parameters.
I would recommend either removing the validation and passing the params "as-is" in this method or using a flag to opt-out of this validation when needed. https://github.com/hoxfon/react-native-twilio-programmable-voice/blob/master/android/src/main/java/com/hoxfon/react/RNTwilioVoice/TwilioVoiceModule.java#L621-L650
from react-native-twilio-programmable-voice.
I also experienced this issue. And made an pull request based on @idelgado 's suggestion.
from react-native-twilio-programmable-voice.
I also experienced this issue. This library only propagates to Twilio certain params (don't remember which atm). The issue here is how 'correct' is for twilio the use of custom parameters. If twilio says it's okay, this library should propagate all the custom parameters to the twilio android sdk (Don't know how this issue affects iOS)
I'd happily open a PR in that case :D
from react-native-twilio-programmable-voice.
This older article flatly states the mobile client cannot pass custom params, but this twilio API doc instructs you how to do so on android.
I believe it is correct behavior in the sense that Twilio has guides encouraging it and supports it in their other APIs like the Web javascript client
from react-native-twilio-programmable-voice.
Thanks @idelgado to jump in!
Can you confirm that my understanding of your explanation is correct:
Considering the following SDK method call:
Voice.call(getReactApplicationContext(), accessToken, twiMLParams, callListener);
Could twiMLParams
be a Map
containing any arbitrary number of strings?
If so we could iterate over the Javascript object passed and convert it into a Java Map - which is strongly typed - omitting any key containing non string values.
from react-native-twilio-programmable-voice.
This has been resolved in #94, closing this issue
from react-native-twilio-programmable-voice.
Related Issues (20)
- Push notifications for missed calls and voicemail HOT 1
- How to handle conference calls HOT 1
- Failed to run the deviceDidReceiveIncoming method HOT 2
- Storing Device Token in Local Storage Causes Issues on Multiple Devices HOT 1
- App is not run on android simulator HOT 1
- Call Extension for contact
- Distinguish between ringing and answered? HOT 1
- Android 12 support HOT 5
- Voip call is not received in iOS HOT 1
- Phone Number showing in status bar while call is in progress HOT 1
- React Native android build failed while running app after install - npm install react-native-twilio-programmable-voice --save HOT 2
- incoming call failed in android
- CallKit error com.apple.CallKit.error.requesttransaction error 7
- Any listener like 'TwilioVoice.addEventListener('deviceReady') not working in IOS HOT 6
- How can I implement the call rejection function when the line is busy?
- How can I get call_state when I accepted a call? HOT 3
- Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. HOT 1
- android 12 error HOT 1
- Twilio Official Voice React Native SDK HOT 1
- Invalid Parametrs error on connect outgoing call HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-twilio-programmable-voice.