Location service permission(alert) not showing in iPod - xcode4.5

I have uploaded a GPS based iPhone app(iOS 6) to app store. One of my friend told that, core location permission is not asking for his device(iPod). As his location is not getting updated, he misses the functionalities. I have tried many devices here (iPhone 4S, 5 and iPad), but all get worked nicely. I don't know what is wrong with my app. If any body has idea then please help me.

Chances are that the iPod he is testing with is not location capable. If the device is not capable of location updates, it will never prompt the user for location.
I would embed an alert if the device can't use location so the user/tester knows why location updates aren't working.
Newer iPad/iPod Touch devices can get location updates based on the new Wifi tiling, but that functionality (new to iOS 6) is not backwards compatible with older devices. That is why it is best to test for location availability first, then alert if not available.

The API got a update recently (iOS 6) and I remember the way to get the permissions for Location and showing its message (purpose) got deprecated.
Take a look at the docs and find the deprecated stuff.
I hope it helps.

Related

URLForUbiquityContainerIdentifier never returns on iPad Air 2 running iOS 8.1

I have a new iPad Air 2 running iOS 8.1 that I am using to test my app.
The call to URLForUbiquityContainerIdentifier never returns.
I installed iOS 8.1 on my iPhone 5s and everything works as expected.
I am thinking there may be a bug in iOS 8.1 for the iPad Air 2 but I am not sure. I noticed that in Settings for iCloud that Documents and Data wasn't even listed, and I signed out and signed back in and Documents & Data showed up in settings. That leads me to believe that this might be an iOS bug.
But in case it is not, is anyone else had the call to URLForUbiquityContainerIdentifier never return? If so, what did you do to fix it?
This is a Core Data app using iCLoud storage for an sqlite data store.
I call ubiquityIdentityToken before and it retuns a non-nil value, so iCloud is available.
NSURL *cloudStoreURL = [fileManager URLForUbiquityContainerIdentifier:#"XXYYZZ.com.yourcompany.appname"];
A user emailed me and said it suddenly started working for him. I just ran my app with no changes and everything works as it should. I do not know why it is working, but something changed somewhere, my guess is Apple changed something.
I've seen the same issue recently for one of my apps. It never occurred directly for me but it has occurred for Apple during the review process. However, it happened only for one of my apps. A second app with the same code never showed the issue for myself or for Apple. I have contacted DTS regarding the problem. If I get a solution I'll post it here.

offline web app fails to open after ios 7 upgrade

I have a webapp that I created well over a year ago, and running on iOS 6, it's been rock solid. It's designed to work offline and online, from the same home screen icon. I've got a manifest file that loads up the bootstrap javascript, all the js includes, and the core files. The app is designed to store data while offline (using SQLite) then transfer anything in the offline queue to a MySQL database once online. And again, all this was working on iOS 6 with absolutely no changes whatsoever to any of the files, the manifest, etc. for months.
Then I upgraded to iOS 7.
Now I have a host of problems, but they all seem to revolve around database issues. I'm getting a lot of code 6 errors in Chrome (in Safari, I get nothing, just a blank screen). In my reading up on this I found that Apple did make some sort of change to how SQLite runs, but not being an xcode developer I don't have access to the materials on Apple's site, and since I'm not running xcode in any case I don't know if that even applies to my purely HTML app.
My question, then, is this: with whatever changes Apple made on the app side, is there anything that would have affected the functionality of a pure HTML5/JS/SQLite offline web app, bookmarked to the home page via Safari?
IOS 7 limit browser DB size from 50MB to 5MB , is that the reason ? Also I met a end user turn on Private Browsing in their IPAD , also could cause this trouble, hope that helps.
you can check this :http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review
I figgured it out.When you enter safari, a little button on the top left on the keyboard says "private", click it to disable it. The database will work fine. But! jquery mobile will not be able to use the back button. For this, you have to delete appcache from your code. jquerymobile 1.4 will fix this, but for now you will have to live without appcache!

Meteor login not working on mobile

I am working on a simple mobile web app and I am having trouble logging in...
I followed this little sample on making a custom login: http://blog.benmcmahen.com/post/41741539120/building-a-customized-accounts-ui-for-meteor
Nothing too tricky here.
So I run my meteor server locally. On my computer, through the browser, I can log in and create accounts -- no problem.
When I go to my local IP from my iPhone, the website successfully loads but for some reason I am not able to login or create accounts.
I have noticed that for Meteor.loginWithPassword and Meteor.createUser, the callback function NEVER gets called. I have {{loggingIn}} rendering a loading screen and the loading screen is only there for a fraction of a second before the form is reloaded. No errors are thrown (validation passes and the callback function doesnt fail).
Out of suspicion, I deployed the app and tried accessing the deployed website from my phone and the same issue persists...
Any ideas what I cannot log in or create accounts on my iPhone, but I can on my computer? Maybe its a cookies thing? Any ways of solving this?
Thanks a lot,
Chet
Edit:
This works on both my desktop browser and iPhone simulator. Just not my iPhone. Could it just be a local network issue? -- No, even if I deploy the website, I have the same issues...
Also, check out my github post about recreating the issue:
https://github.com/ccorcos/meteorPasswordMobileError
Check to make sure that you are running the same version of iOS on all the devices you are testing on. I have seen iOS 7 misbehave when using Meteor apps. iOS 6 works just fine.

In app purchase didReceiveResponse does not show my product

By some mysterious reasons I got myself a jailbroken iPhone 3GS from a vendor whom I am finding difficult to track.
My task is to test out in app purchase functionality on it.
Currently it has iOS 5.0.1 with cydia installed.
No, it does not have Appsync.
I am installing my build through testflightapp API which works without issues with my app so far.
However when I initiate in app purchase, I don't get anything in response.products so far.
I have added productIDs and all in itunes-connect already, checked twice that they are fine, since 48 hours.
I tried testing with iPhone simulator 5.1, but all I got was no values from storekit. I would love to hear if there is any workaround with simulator.
Worked around this finally - deleted my app from itunes connect, re-added it.
It complained about name being already used.
I changed the language of name. And it worked.
Maybe, my prior app setup was right, but I had something else messed up.
In between, I rejected my app. That maybe one of the reason behind this issue.
Lesson?
Don't developer reject your app.

location updates from iPhone Simulator

i am testing my application on XCode 4 using iPhone simulator.
i have made program which will take location updates using G.P.S. on my MAC there is no G.P.S only internet working. So how can i check my application is working or not.
Thanks
The guys from future tap created FTLocationSimulator for this task.
It is a replacement class for CLLocationManager and it allows the replay of tracks recorded in kml format.
Works very well.
I heard that there is a built-in location simulator in the iPhone Simulator of iOS5. But I've never used it.

Resources