DeviceCheck Without A Server - swift

I am trying to implement DeviceCheck for my app. I am new to coding and do not have the resources to build a server to be an intermediary between the client and Apple's servers. Is it possible to just query for and update the DeviceCheck bits just on the device?
I have tried converting some DeviceCheck tutorial's server code to swift but have not had any luck. Can anyone help me wit this?

I used to have this problem too, but I decided to use a $0 non-consumable purchase since that will be recorded in the Apple receipt file. Depending on what you need it for, this could be the simplest way to do something similar to DeviceCheck without adding your own server component

Related

Fetch from background

I am writing an iPhone app, and I have a remote server that will deliver content. I would like to have my app poll the server once per day to see if there is new content, even if it's not running or in the background. I would also like to do this without setting up an APNS. Any advice?
You can't do that, either when your 'not' running or if you are running in the background. The best you could do is to download once per day when your app is first run / pushed to the foreground.
You could use remote notifications to "prompt" the user to bring the app to the foreground so that it could download something?
With the current apple IOS guidelines, that is about the best you can do.
I read that you are trying to avoid using APNS, but I am wondering if you are trying to avoid it for the right reasons, especially when it is designed to efficiently solve the scenario you are describing. I've seen many developers seek alternative solutions to APNS simply because the technology appeared to be complex to use after looking at Apple's documentation. The online documentation does go into a lot of details, right down to the binary protocol level.
But just to be sure you know, there are open-source libraries whose only purpose is to shield you from all these technical details. Some libraries are more complex than others, but some are remarkably user-friendly. If you have not done so already, you might like to take a look at JavaPNS and other similar projects.

How to create a server for APNs for iphone

I'm creating an iPhone app that produce Pushnotifications. When I went through the documents and tutorials, I can see that we need a server support to provide the push notification. So, what are the requirements or what all are the important things that I should keep in mind when I create the server.
Thanks
If you are implementing it on your own, take a look at how to make my server support APNs? You can use php-apns if you want readymade server.

File server for iOS app

I am working on an iOS app and have been stumped for the last few days trying to figure out how to set up a server to receive and serve data to the app. I have no experience with servers, which is making it difficult. I need to simply be able to upload and download NSData or plists (XML files). I looked into Google App Engine but got stumped.
Could anyone provide some direction? I would truly appreciate it. This is the last major obstacle to completing the app I am working on.
Thank you
I would recommend looking into Amazon S3. It is a simple file server that uses HTTP. Can't get much simpler than that, and does not require you to build anything server side.

What is the best way to transfer an object between two iOS devices running the same app?

I'm trying to give my iOS app the ability to transfer an object to another iOS device running the same app. The object is on the order a few thousand KB of memory. Does anyone have a suggestion as to how to do this? I am considering using FTP, but that seems a little messy. Does anyone have any suggestions on possibly using GameKit? Or something else?
GameKit would probably be your best bet. This link seems to go over it pretty well
As an alternative, I've found the SimpleNetworkStream example that apple gives an exact match as to what I want to do. Simple Peer to Peer file transfer might be the best solution.... It seems that people are having a lot of trouble transferring large data objects with GameKit.

How would I add code that would update an online "counter" so I know how many times an iPhone app is being opened?

So I have searched for this but not finding anything about it and if I missed it sorry about that. What I am trying to do is see how to go about adding some code to my iphone app that will connect to a php script (if connection available) and update a counter so that I can let my clients know that their app is constantly being used? Also, would apple allow that? Or would my app be denied for doing such a thing? Any help would be great! Thanks in advance.
There's a bit of network plumbing to implement this. It's not hard, but a much easier route would be to integrate something like Flurry analytics into your app. They you can make one function call, and have it track and upload the information to Flurry's servers. You can view those stats and get an idea of how people are using your app.
Note: I don't work for Flurry, but I use (and like) their service.