iOS - How to find/debug a system function in contacts app - ios

The title might be weird but I try my best to explain my concern.
Upfront: I have little knowledge in programming but I'm willing to learn and understand this whole topic.
I would like to know how I can get an inside look into a function of Apples "Contacts" App or better a function this app provides.
E.G: If you enter a new contact with mobile phone number or email address and you save the inputs, the contacts app automatically responds if this user is able to receive Facetime calls. A new slider appears like a dropdown and you can chose to call via Facetime.
My approach is to have a script where I can enter the number/email and to get a response if Facetime is available or not.
I'm not asking for someone to give my a code example or something. I'm just interested how to approach this task. I would appreaciate if someone can give my a hint in the right direction.
Thank you.

Related

Anatomy of a Porch.com SMS lead alert

I would like to design the SMS referral link for a lead alerts application. (So the pro would receive the SMS message on their device with a link to click through to the job request details.) I'd like to make it secure and scalable. The link below arrives in the SMS as a shortened URL. That much I understand.
Porch.com does something similar and I'd like to know what the strategy is behind each segment in the URL (or your best estimation). Can someone help me understand?
Here is an example: (Thanks Porch.com)
https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
Twilio developer evangelist here.
First of all, this isn't really a question for Stack Overflow. This is a place for asking questions about code that doesn't work in order to get it to work.
Having said that, the more I looked at the URL as I was commenting on this question, the more I feel I worked out. This is my idea of what the URL is saying.
Here's the URL again: https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
The random string in the URL, 3fd55669-d7cf-4655-892e-252080c34a79, looks like it is the identifier for the project itself. It's long and random, like a uuid, so it would be hard to guess, but can uniquely identify the project.
The email is presumably the email address of the pro that the SMS was sent to, so that the return on sending SMS projects to them can be measured.
The referrerSource is then used to measure how each of their referring sources is performing.
The only parameter that is impossible to really guess at is the c. Removing it (in fact, removing any or all of the query parameters) didn't change the result of loading the page. This implies that it is just another tracking parameter.
Hope that helps.

Check if App is started with GameCenter challenge

Hello Stackoverflow Community,
I would really like to get help of you, because i am at this problem for around 2 weeks now, and i could not even find something that would help me a bit.
If i get a challenge for my app and click on it, my app will open.
Is there a way to get the information on what challenge i clicked and let me display e.g. the score that i have to beat inside my game?
I tried getting the Arguments that the app is started with, but there is nothing that looks like challenge related data in there.
I already managed to get all the challenges for my game, but there is now way i can tell which one i clicked on with that method.
Thanks for you help.
As of this writing, when you click the notification or open the game via the game center, no useful information is passed to your game.
All I have found are hacky solutions, like putting descriptive text (maybe the requestor's name) in the invite text and then showing that same text when displaying the list of available matches.

Adobe Analytics Slicing Tags

I have an iOS app where I have analytics setup (as most people do) that tracks a whole set of different scenarios. In a few of them, the data I send with the tag doesn't all get sent. What I mean by this is best demonstrated with an example. If I send the following data as a tag in one of my analytics:
User successfully logged into the app and hit the homescreen
Now, I wouldn't normally send all of that in just one tag, it would get broken up, but for example purposes, pretend that's what I want to send. For quite a few users, tags like this will get sliced up into all sorts of different tags, so when I actually look in SiteCatalyst, I end up seeing a bunch of tags that may resemble something like so:
successfully logg
nd hit the homescreen
User successfully logged into the app and hit the homescreen
User successfully logg
And so on. It breaks it up into a bunch of different parts, and then displays them all as separate tags. The ones that are affected get broken up into 15-20 different tags all of which are different parts of the full tag.
Here is the hard part: I can't reproduce the issue. I'm trying, but haven't been able to yet. I also am not very well versed in Adobe analytics and am not sure how the backend setup is for us on SiteCat.
Because of my inexperience with analytics, I'm not sure what more data may be helpful. My code doesn't do any truncation, it simply calls trackAppState:withContextData:, and the tags in my contextData get truncated like I showed.
Does anyone know why this is happening? Has anyone seen anything similar? Or could anyone point me in a direction that may get me started looking into this issue? I'm really at a loss of how to go about debugging this issue.
Edit: One piece of info that just hit me! I build up the tag in question (at least the current one I'm trying to reproduce, for all I know there are other tags that get truncated that aren't built up like this, I haven't gotten a chance to look into all of them yet.) using `-[NSString stringWithFormat:] and take the errorMessage that is returned as my message, so it's a dynamic tag.
It may have something to do with the stringWithFormat: message? Again, very lost as to where to even start with this one.
can you give us a sample of the code you use to call the trackAppState?
If it can help you you can enable debug logging for the Adobe Analytics library calling the method [ADBMobile setDebugLogging:YES]; in the appDidFinishLaunchingWithOption.
In this way you can see in the console how Adobe send the data.
You can also use the tool "Bloodhound" which is a proxy App developed by Adobe expecially for osx in order to let you sniff all the info sent by your App in real time, you can find it in the help section of the mobile marketing interface.
Thanks,
Claudio.

Custom Voice When we call

I don't know if i am exceeding the limitations of expecting something at this level.
Can i have a CustomVoice when i call someone.
For Eg.: if I Press a Button CallUser which would make a call to the specified number, when the user accepts/receives the call, he/she should be able to hear/listen a Custom Voice in the form of some message, kind of stuff, but i wont be speaking a word.
Please let me know if i am not clear.
Feedbacks Welcomed.
Thank You.
Best Regards.
No, as a developers on iOS you can not interact with the telephone. So you will not be able to have some kind of text to speech engine to do the call for you.
You might be able to do this if you develop your own VOIP client, since then you have full control over the call.

Gem for creating a left/right scrollable notification viewer for web app?

I'm new to Ruby on Rails so please bear with me.
I'm creating a web app for users to trade cards and would like to include in the user's home page a notification section that shows relevant alerts for the user based on possible trade matches and other things like new messages. The functionality would require alerts to be generated based on certain triggers (userB accepts trade, trade is proposed to userA, userB messages userA, and possibly even incorporate sponsored posts). This will basically function like the "notification center" on iOS.
I've made a quick mockup: http://i.imgur.com/hQ3Fc.jpg (or if that's too big --> http://imgur.com/hQ3Fc) -- wouldn't let me embed image because I'm new :(
So the idea is the view will probably have 5-15 alerts at any given time (give or take) and can scroll through them using those left/right arrows. The alerts will be a basic message with a link to the relevant page, or for something like a trade rating have the message "open" to fill the viewer and show the necessary functionality.
Hopefully I explained this okay. Anyone know anything out there that might make building this easier? Please let me know if there is any info I missed in asking this?
Not sure I get exactly what your wanting to do but if I understand correctly this may help. I have used swipe.js it is easy to use, should get you started on a swipeable/scrollable interface.

Resources