iCloud Document hardly sync after first launch - objective-c

I'm using UIDocument method to store data in iCloud.
So I have 2 devices to test, when I first launch the app on iPhone, then I do some changes then call saveToURL:completionHandler, after that I launch the app on iPad, it's working good, at least it does retrieve the data from Cloud server.
My problem arise after both have their local Cloud storage. Now I made some changes on iPad, then I switch back to iPhone, I noticed the iPhone still having its old data, not the changes that iPad did earlier.
Does anyone know what's the problems? I even try to turn on/off Document & Data in iCloud setting then re-run the app but no luck, it's still doesn't working.

Related

In App Store Connect, app preview poster frame not saving

I've added some video app previews for my app on App Store Connect and when I set the video poster frame, it never saves the image that I want, it always reverts back to the one that Apple defaults to initially. Does anyone know a work around?
UPDATE: I did get in contact with App Store Connect and they told me it's a recent bug that they're actively working on fixing. I'm going to touch base with them early next week.
Issue is still happening. But if you want to be able to upload without problems try this:
Upload the screenshots of one complete language
Don't touch anything for 2-4 min once pictures are uploaded.
Then you can refresh the webpage and check if the screenshots are well uploaded.

iOS 7 App Operations Running In Background; Saving a Video Recording In Background

I am currently trying to find the most efficient way to continue a method in the background of my app.
I am probably adding location/gps to my app soon, so I was considering using that flag to keep the app Active in the background. However, I do not want to add that flag yet because I want to post an App Update before I add the location functionality.
I know the exceptions;
Apps that play audible content to the user while in the background, such as a music player app
Apps that keep users informed of their location at all times, such as a navigation app
Apps that support Voice over Internet Protocol (VoIP)
Newsstand apps that need to download and process new content
Apps that receive regular updates from external accessories
Besides asking for a more generic idea then these ^, can someone explain the "external accessory" flag please? I am recording video from an outside device. However, I do not know what constitutes an "external accessory".
I also see that iOS7 has introduced new Multi-tasking functionality but I haven't seen any examples that I understand can someone also explain that? Maybe that is a viable solution?
Thanks in advance!

How to open the apple app store internally using a modal segue

I am currently making an app that recommends other apps to download on the apple app store. I assumed that the only way for users to download these linked apps was to call the iTunes URL of the particular app -> the apple app store would then open pushing the original calling app into the background -> then the user would press the download button here as per normal.
Then I was playing with the app "App Hero" and they do something I thought wasn't possible. You can actually download another app to your device without ever leaving the "App Hero" application. I thought this was impossible due to sandboxing. They have a modal segue to what appears to be an embedded app store where you can commence installation of another app. This "embedded" app store doesn't have the usual UITabBar running along the bottom but everything else is basically the same.
Does anyone have any idea how they would have achieved this? It doesn't appear to be a UIWebView, perhaps I am wrong. And is this against any of the apple regulations?
*This is no way an advertisement for "App Hero". I am genuinely impressed/confused how they are able to do this and would love this functionality in my own app if it is allowed.
The class you are looking for is called SKStoreProductViewController. Docs here.

iPhone app crashing while application running in background mode

In my app I have implemented following main features:
Manage Contact List.
1.) Fetch the contacts from address book and save them within the app.
2.) Display the list of contacts.
3.) Link the contact with other contact to expand relationship.
Calendar Management
1.) Show the iCal Event within the app & allowing users to create new Events
2.) Show the events on calendar in Day, month & List formats
The memory may have a large memory footprint when it goes to the background. After an extended stay in the background, if I try to revive it, It crashes. This is also random and is not reproducible constantly. Also I have to open the app 2-3 time, before it actually works.
I am inclined to think that as per iOS SDK, an app in the background can be killed by iOS itself if there is a requirement to free up memory for the app which is currently in foreground, so probably that is what is happening, but when I try to relaunch it crashes again 2-3 times. Why would that be happening?
Any help would be appreciated.
try to use breakpoints at some parts of your app that might use too much memory, and you may find your problem
I suggest examining the crash log by
connecting your iOS device to your computer,
launch Xcode,
open the Organizer (Window->Organizer),
click on the Devices icon,
click on Device Logs.
It may take a few minutes for the log to be fully loaded from your device. The log should tell you where the crash occurred.
Also, if you haven't already done so, add the following code to your view controller.
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}

Game Center for my iPhone Game

I am developing an iPhone game, and I will implement Game Center in it.
Apparently, I need to do some configuration with my application in iTunes Connect first. Therefore I have to "create" my application in the iTunes Connect page, right? But, how do I do that without getting Apple's staff review my app since I am still working on it?
I tried making a new app like normal, but it asks me for a bunch of stuff like screenshots etc, but I have none to offer in the first place...
Fixed. It seems they won't even review it if there is no binary uploaded yet.