I have built a chat app using twilio to completion but I have noticed initializing it is pretty slow on an EDGE connection, averaging to 10-15 seconds (Whatsapp and telegram takes about 3 seconds on the same connection).This is without having set any region via properties on the sdk. Am looking to achieving a snappy startup time like that of telegram/whatsapp.
To go around this issue I thought it might be network latency issue and I thought maybe setting different regions might resolving it. So far I have tried setting the regions provided here https://www.twilio.com/docs/api/client/regions but am getting an error message request to EMS service has failed unable to set FPA token and error code 0.
Am in africa and my target audience will mostly be running on edge connections.
Please help resolve.
Thanks.
Twilio developer evangelist here.
Twilio Programmable Chat does not currently take a region option, like Twilio Client v1.4 does. In fact, when initializing a chat the only option you can set right now is the logLevel.
If you are interested in multi-region chat services, I suggest you get in touch with Twilio support to register that this is an issue for you.
Related
I apologize if this is not the right place to ask this but I am new to IOS development and I can not seem to find any information about this topic anywhere. Maybe I am just not looking in the right places, but I would appreciate it if you could point me to some resources or provide me some suggestions.
I am looking to construct an app clip which can handle api communication. I believe this is possible because a lot of the app clip examples online seem to suggest the technology is useful for quickly completing a transaction (ex. Panera bread app clip) and I don’t assume they are completing the entire transaction locally in a 15 mb application. So that makes me assume at some point in the application they are communicating with an api. I read the apple documentation and they mentioned that the urlsession library is not available for app clips, so I was wondering how else would we communicate from the app clip with the api, ideally in a background scenario as to not bother the user experience. Thank you in advance!
I have an application that it makes requests to a webservice REST created using PHP. It's working perfectly my application makes requests and receive the data. But a want to know how can I make in my application to sincronize in real time with my server. It would be like an application messenger that receives the data automatically without an ask from user. How can I do it? Thanks
Your "real time" and "synchronization" are misleading terms. What you need is the implementation of Push mechanism. You can use cloud messaging from google, see this for details. Or checkout sockets and implement it from the low level yourself
To keep your app synced with your server, run a looping Timer on an interval in the background. Use it to check the server for new messages, and then feed those messages to the user.
Here a is an answer that may help you achieve this Android timer? How-to?.
I am writing a caldav server for our company which will be compatible with a number of clients, one of the key supported devices will be iPhone running iOS 4+.
This server will only support VEVENTs however when the server is initially configured under settings in the iPhone, the iPhone thinks that the server also supports VTODOs. As there is no VTODO calendar outlined, it then proceeds to try to create a default one on my server. The Warning in the console output reads: “This account is enabled for tasks, but has no task calendar. We’re going to create a default one” I return that MKCALENDAR request with an empty response with 403 status, however the phone doesn’t seem to realise it’s failed and still puts the Reminder list in the Reminders app. I’m not where I should be flagging to the phone that this account is not enabled for tasks.
I haven’t been able to find much information on caldav servers in general and none on what iOS supports and is expecting from a server. I have been adhering to the standards in multiple RFCs including 4791, 5545, 3744 and 4918 but have not been able to find any help for this particular issue. I have also looked through the developer resources provided by apple to no avail.
Any help or pointing in the right direction would be greatly appreciated.
Jo
We needed to support serving iCalendar events to iOS as well, and struggled with some of these issues. For our problem, the calendar was read-only to our target clients (which I'm guessing is likely not true for yours). The server task was dramatically simplified when we realized we could use the subscribed calendars option to just get a calendar feed without anything else:
Not exactly a direct answer to your problem, but hopefully useful as an option to consider.
I am working on a iPhone application which uses APNS. I am clear about the procedures in implementing APNS, creating device token, blah blah blah... I have no idea how to trigger and initiate the APNS from the provider side by web service. Can anyone suggest me some blogs or links which guide me to gain knowledge how to deal with it. Thanks in advance.
If you don't want to spend time doing it on your own, you can try Urban Airship. If you want to do everything on your own instead, check out this tutorial. It also explains how to create the required certificates.
Otherwise you can try libraries such as apns-php. Just make sure it works with lots of messages (I haven't tested it) and meets your requirements (you may want support for multiple apps). Avoid EasyAPNS because it just doesn't work with more than 10 messages (it tries to open a connection for each message and will probably get your IP banned).
If you just want to get a better understanding of APNS and don't want to get aboard one of the 3rd party services, then try:
NWPusher
It allows you to send pushes right from your Mac. Great for testing your client application and for setting up the right certificates.
You might want to take a look at Urban Airship, they will make things a lot easier for you.
If you want to roll out your own server, here are some good starting points in terms of documentation/help
apns-php
easy apns
Another tutorial
For example I call on the specific phone number and automaticly connect to some kind of server(?) which is able to handle all my actions while I'm connected. I want to try myself in coding this server, but I have no idea how to start =) Please give me some links to read about this or maybe some keywords to google it. Thanks a lot!
Actionscript3 will handle either web applications or desktop applications. Since you're talking about using a cellphone , I doubt you can achieve what you're looking for with AS3.
You could consider a web application whereas a user would connect to the internet via her phone and interact with your application but as far as calling a number and get some form of server response, you may have to look at using another language than AS3.