Twilio Android QuickStart app for Programmable Voice - No incoming calls - twilio

I have followed the guide that says "Get Started with Android" for Twilio Android Programmable Voice SDK.
I have done everything right, from using the correct Account Sid, API Key, API Secret to giving Voice Grant to the access token generated.
I have also added the GCM push SID in order to receive incoming calls in the Quickstart Android App.
However, I am not able to receive calls in my Android app (though it's working fine in the browser)
Based on the code in this app, I have to release an update to my users.

Related

Unable to link the bot built from bot composer with twilio

We have built a bot using bot composer, and deployed it as azure function and the web app, the URL looks like https://xyzbot.azurewebsites.net/api/messages
We tested it using bot emulator and the web chat, worked fine.
Facing some challenges while registering the bot with twilio channel.
When we used the same link in twilio webhook, it is giving following bad request error.

"Twilio could not find a Channel with the specified From address"

I have integrated rasa assistant with twilio to show chat in watsaap messenger.
Currently, when i send the message to the bot this error is coming up.
I faced this issue while trying the Twilio WhatsApp API with test credentials (expecting it to work).
You need to use the LIVE Credentials instead of the Test Credentials. The test credentials do not support WhatsApp at time of writing. It will cost you some money per successful API call (because it is a real API call to WhatsApp).
This error indicates the destination (To:) number is not WhatsApp enabled. If that is not the case, you should open a ticket with Twilio via the Twilio console to have them further investigate.
Twilio could not find a Channel with the From address

twilio rest API for event registration and listening

I'm using twilio rest API to implement a chat iOS app in objective-c. Though twilio has iOS SDK, I'm required to use rest API only. My question is does anyone know how to use twilio rest API for event registration and listening, such as message sending?
Twilio developer evangelist here.
The Twilio Programmable Chat API uses webhooks to notify your application of incoming messages. Note though that webhooks are not fired for events that are initiated from the REST API. Since you are in control of sending messages via the REST API you should be able to notify other parts of your application when you do so too.

Azure Notification Hub to Apple and Android

We build an iOS app using Apple Push Notification feature. We integrated everything the Apple docs told including provisioning profiles etc... A test in development mode worked fine with Apple tools. Same should be in near future with Google, but I´m talking here just about iOS implementation...
Our backend on Azure collects the registration ids from all iOS apps proper. I mean: We are storing the token retrieved from registration directly at Apple services.
Now we want to use Azure to send Push Notifications to all our apps. But I´m confused from reading the Microsoft documentation:
Must my mobile apps register to Apple or to Microsoft with corresponding SDK?
We don't use the MS SDK on app side. We just register at Apple. Can we send Push Notifications to our iOS apps (just simple broadcast to all registered apps) with Azure?
Our backend on Azure collects the registration ids from all iOS apps proper. I mean: We are storing the token retrieved from registration directly at Apple services.
Where are you storing them? You have to store/register the device tokens at your Azure Notification Hub.
Must my mobile apps register to Apple or to Microsoft with corresponding SDK?
Your app has to get a device token from APNS and then register this token at your Azure Notification Hub, so basically you have to do both.
Have a look at the documentation here. On a high level the whole process looks like this:
We don't use the MS SDK on app side.
You don't have to use the SDK, you can use the REST API.

Using Amazon SNS with React Native

Can anyone provide a simple example of using the Amazon SNS service to send and receive Push Notifications under React Native?
I've got the Amazon SNS service setup, and I can publish a message from the website and have it appear on an iPhone – if I manually enter the device token and initiate the publish on the Amazon website. Now I want to automate the process of registering the Push Token in Amazon SNS, and allow the app to Publish a push to the SNS service.
I know that Amazon has a very new project to integrate their SDK into React Native, but I cannot get it working. Support on that repo is spare too, so I'm hoping someone here can help.
Right now what I get is: Undefined is not an object (evaluating 'cognateClient.initWithOptions')
The GitHub issues mention something similar on Android, but obviously that doesn't help with my iOS app.
What I'm looking for is a step-by-step breakdown of how to integrate Amazon's code in to an existing RN app. They don't provide a standard Node package, so I'm struggling to figure out how to get the React Native code and the SDK to play nice with Xcode.
Any suggestions? Thanks!
There's no 'integration' of AWS into the RN app needed. You just need the device token from RN.
Use a package like RNPN (https://github.com/zo0r/react-native-push-notification) in order to get the device token your phone generates. When you have that, make a call to your api, and your api is then responsible to call out to SNS to register that device token as an SNS 'endpoint'.
Translate this pseudo-code into whatever your API is written in: https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html
In short...
RNPN onRegister ->
POST /registerDevice on your api ->
call AWS
createPlatformEndpoint from your api ->
start sending messages from your api
Most likely you'll want to store some relationship from user -> deviceToken+platformEndpoint in your db/data store.
Then you can send notifications from your api. Wrote up how to do that here: https://medium.com/#duhseekoh/send-a-push-notification-using-aws-sns-javascript-sdk-2f117e9c4180
Im using react-native-fcm with Amazon sns, it will register my device token and then we are sending that token to our php solution that then add the device to a subscription on a topic in SNS, passed back to the app is the subscription token and endsub tokens. Then we Push Messages to the topic thru SNS. Works on both iOS and Android.

Resources