making custom ads for iphone application? - iphone

i would like to display ads from my server in a uiwebview placed inside my application for which i will be sending some data from the phone to my server but what i have heard sending user data to your server in application will lead to the application being rejected?? is it true?? is there any other way to implement own custom ads from my server into the application??

That's not true, as long as your server aren't belong to some company in the mobile OS business.

Related

Using mailto in a mobile web application running on iPhone

I am developing a web application to run in standalone/full screen mode on an iPhone and I am using mailto to open the default iPhone e-mail client to be able to send an e-mail from the web application. This works, but the problem I am facing is that after the e-mail is sent, there is no way to automatically get back to the web application that caused the e-mail client to be opened in the first place. The user has to manually click the web application icon on the home screen to go back to the web application, which is not what I want to happen. Is there a way to automatically return to the web application once the e-mail has either be sent or cancelled?
If not, it appears to me that this destroys the usefulness of even using mailto in a mobile web application. What would be the point if you cannot even get back to your web application (where you left off) after sending the e-mail?
I am using iOS 7.0.3 btw.
Is there a way to automatically return to the web application once
the e-mail has either be sent or cancelled?
No, unless you develop yourself the mail app (like GMail app does with Chrome, for example)

How to validate a user request from iPhone is an authenticated Facebook user?

I'd like to build a web application which allow iPhone users to save a short memo as a todo list on the web server. The user must logon on Facebook on the iPhone before submitting a memo.
On the server side, how can I tell whether the iPhone user has logon on Facebook or not?
In a native app, FBConnect can be used to establish trust between the app and Facebook. (FBConnect calls an fbDidLogin delegate method).
It's up to you to establish trust between your iPhone app and your web service, but once you have, the app can report the FB login state along with it's requests.
Assuming you're just building a web application, I don't understand why it would be different then building a normal web application that uses fbconnect and graph api. You just happen to design it to fit a mobile browser. There's a section on authentication.

Connect iPhone application to flash media server

I Have a flash player application embedded with a website working fine. Now I want to do it in iPhone, fore that i want to send request to flash server. The responses from server are realtime and used RTMP. How can I send request to Flash server from my iPhone application.
I've ported my app on iPad. And I didn't changed code that performs interaction with server

iPhone Push notifications via mobile safari

Is there a way to simulate push notifications by pushing data to mobile safari? Here are 2 scenarios.
I make a web app via phonegap and dont want to use APNS but rather make a web-socket connection and push data to the device myself. On the device end is there a "alert" function I can call to emulate a pop up when a user is not in the application?
Lets throw web app out the window. Is there a way I can do this in native mobile safari? Im not talking about a plain old JS alert window that would only come up if the user was in the app, but be able to do so with it backgrounded.
You cannot run background tasks with mobile safari so for #2 you can't do true push notifications or alerts. However you can send a user an SMS if you have the user's phone number. This can have a hyperlink to a part of your web site (which can contain some sort of payload). You can use a service such as Twilio to help you send SMS'es. However this costs money. APNS does not.
For scenario #1 I'm assuming you're talking about a native app using a phonegap solution. In this case when the app is backgrounded you cannot access any UI at all and wake up the app and show a UIAlert. In fact unless an app is registered for location updates or background music, the app is effectively not going to respond after a set period of time (it only can "finish" certain operations it had started before). So the websocket solution will only be effective if the user has the app opened.
You could register a local notification that runs at some predetermined time which will show an alert. But that is not being pushed from the server so its probably not what you want.
APNS is your best solution for scenario #1. Its not that hard to implement and its pretty inexpensive. Check out urban airship if you want to avoid building out your own server-side components for it.

Is there any SMS through data app that is available for iPhone and Blackberry?

I know there's the app called Ping! for iPhone that allows the sending of SMS messages over your 3G connection, therefore it doesn't count as a text message and it acts pretty much the same as the regular iPhone texting software. Is there any app like this that's available for both iPhones and Blackberrries?
Google Voice allows you to send and receive messages through a web frontend. Because it is just a web page, it should work on any phone with a data plan. More info here: http://www.google.com/googlevoice/about.html