Cookies in Home Screen mode on ios7 - iphone

I have a web site that my users "add to home screen" on there iPads.
Since ios7 came out i am not able to erase cookie data for this site from the device (not programatically) . clearing cookies in safari does not affect it. Event if i delete the icon on the home screen and re-add it. the session is still there. Any ideas of how to erase cookies in this case?

I feel this is an important issue that could have security implications.
It is obvious that ios retain user data even when the add to home screen bookmark is removed from ios.
I just tried in an older version of ios (5.01 on ipad 1) and can at least confirm that on that version removing cookies in safari removes them from the home screen bookmarks as well.

Related

Ionic 3 running in the browser: application navigates to root when switch back to Safari

I have built an Ionic 3 app which will be served in the browser (as a PWA).
I build it using ionic cordova build browser --prod, everything works as expected, but in iOS's Safari there is a strange behaviour: the app navigates between pages using the NavController's push method and the url changes, using a hash strategy, and when the user go to another app and then returns to iOS, the location from my Ionic app "reset" and the user is sent to to root.
Anyone has any idea of why this can be happening? This does not happen in Android's Chrome.
What you are experience is a known 'bug'
Maximiliano Flirtman expose that behavior for ios PWA with:
Your PWA won’t keep state between sessions, if the user gets out of a PWA, it will be restarted when coming back, so if you need the user to validate an email, SMS or do a two-factor authentication, have that in mind to offer a proper solution.
See all Maximiliano Flirtman post.

Why am I seeing iAd's advertisements, like I did in development, in my production app?

My app just got submitted to the app store and I just downloaded it, I am getting iAd's advertisements just like while I was developing it. Will is this showing up on other peoples devices? Or just on the devices that I have in my developer account?
There is a possibility that you've got a development version on the phone and that wasn't overwritten by your app downloaded from app store.
So, just try deleting the app from your phone and computer, and then try to re-sync.
Usually, you will not see your iAd ads on a device where you have installed any provisioning profiles.
In any case, to make sure that everything is working correctly, you should go to: http://iad.apple.com, log in, and check the status of your app (i.e., click on the app name at the bottom of the Summary page where you land).
If everything is ok, you should see a status message like in the attached picture. If not, the status message will mention "test ads". In this case, get in touch with Apple by going to itunesconnect and clicking the "Contact Us" link at the bottom of the page. They will fix it quickly.

URL to open iphone app if installed, or open itunes if not installed?

I'd like to post a URL on my site which, when clicked, either opens up my iphone app (if it's been installed on the phone), or, if the app hasn't been installed, opens up itunes with my application, to allow it to be installed.
This seems like a basic sort of thing that might be quickly done with a magic formula URL, but I can't seem to find the relevant documentation anywhere.
This is exactly what Smart App Banners in iOS 6 are for:
http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
"If the app is already installed on a user's device, the banner intelligently changes its action, and tapping the banner will simply open the app. If the user doesn’t have your app on his device, tapping on the banner will take him to the app’s entry in the App Store."

Getting safari history from phone

I'm creating a custom browser application.
apart from the sites visited from my browser, i'd like to show the history of the sites visited from safari browser as well.
From my application, can I get the history of the web sites visited from safari browser on iphone or ipod or ipad?
Simply put NO, you can't access the Safari History. Apps are sandboxed.
If this is for an in-house app, then you could jailbreak the phones and go around the sandboxing like so -
We can find the history.plist in /var/mobile/Media/Safari/ and this we can read in jailbreaken iPhone.
Update:
see this SO link: How to access iPhone Safari History in an App?
Simply put, you cannot. The history is stored in a property list outside of your applications sandbox and you cannot access it.
On the jailbroken side, there is a History.plist located at /private/var/mobile/Library/Safari
You can't. There is NO API to access Safari's browsing history.
I got it. Please follow following path then you will retrieve Browser history for iOS7 iPhone.
/private/var/mobile/Applications//Library/Safari/History.plist
In iOS7 safari app not a system app. When you open Applications folder then you can find history and other plist files.

Face book latest IOS SDK problems in iPhone?

I am working in face book functionality in my apps. I have integrated the latest Face book-IOS-SDK. When runs the application, the application is started and runs in the safari browser. Now I want to load the application in the user view(FB web view) instead of Safari. How can I achieve this?
Facebook doesn't want you to. Facebook's new SDK wants the user to login into Facebook once, and than that Facebook login be used in every app on the device that uses Facebook. Because of the way the iPhone works, the way they had to do that was through safari so that each app could get that info. You can go back to the original way (which so far I personally prefer), but I'm not entirely sure how.
However, if you use the new way, it will automatically redirect the user back to your app once they finish authenticating it. Also in the Safari page they can give your app permissions, ie. post status updates.