IOS Ad Hoc distribution link does nothing - ad-hoc-distribution

Trying to create a distribution for testing. When the link is clicked in safari on the ios device nothing happens (literally. No errors). We are using an enterprise cert and a universal distribution profile. The mime types are correct and everything worked great until we moved to a new folder on the web server. Please help. If there's a way to see what the error is in safari that would be a good start.
Here's the relevant code.
html
<html>
<head>
<title>
test
</title>
</head>
<body>
<center>
<h1>Test</h1>
<a href=itms-services://?action=download-manifest&url=http://uri/app.plist>Install</a>
</center>
</body>
</html>
plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://uri/app.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>appId</string>
<key>bundle-version</key>
<string>1</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>apptitle</string>
</dict>
</dict>
</array>
</dict>
</plist>
edit
wiping the iPad in question seems to work, but this isn't really a viable solution if it happens to a personal device. Any other possible solutions?

I had the same problem on iOS8. The install button would automatically disable in Safari. The cause was that my plist file was invalid. That seems odd at first but apparently Safari checks the link out before you even click it. I grabbed a copy of the plist file from a previous build and (after updating the app version number) it worked. It's also worth noting that Xcode 6 doesn't generate plist files like the older versions did. For more info on Xcode 6/plist you can check out this link as well:
Xcode 6 Save for Enterprise Deployment does not create plist for ipa anymore?

I was having this issue and rebuild and archiving with Xcode 4.6.2 (released April 15) has resolved it for me.

Related

Facebook SDK for iOS Xcode?

I need help adding this code from Facebook to enable advertiser tracking. Here is a link to the description. I do not know where to place the code in Xcode’s source code. Can someone help me?
The link below has the code.
https://developers.facebook.com/docs/setting-up/platform-setup/ios/SKAdNetwork
enter image description here
The guide that you linked says:
Add the following SKAdNetwork IDs to your Xcode project’s Info.plist
So, add them! Note that the example is in XML form, but the Info.plist is displayed visually. You need to Right-Click -> Open As -> Source Code.
Then just paste them in.
<key>SKAdNetworkItems</key> /// make sure you also add this line
<array>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>v9wttpbfk9.skadnetwork</string>
</dict>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>n38lu8286q.skadnetwork</string>
</dict>
</array>
The example doesn't include <key>SKAdNetworkItems</key>, but you need to add this (check out the For more information section)

How to add Assets Catalog for iOS in Xamarin.Forms?

I am using Xamarin Forms. I was facing one weird issue from the past two days. First I have created App with assets catalog and not included a key for "CFBundleIconName". Then after just a few minutes, I got an error like
A value for the Info.plist key 'CFBundleIconName' is missing in the bundle "xxx".
Then after I have tried with assets catalog and removed above key from info.plist file. Then I got an error like
Missing Asset Catalog - Your app is missing the asset catalog file
If I am removing below lines from a plist file then getting 120X120 icon file missing.
<key>XSAppIconAssets</key>
<string>Media.xcassets\AppIcons.appiconset</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconName</key>
<string>icon</string>
<key>CFBundleIconFiles</key>
<array>
<string>icon-20#2x.png</string>
<string>icon-20#3x.png</string>
<string>icon-29#2x.png</string>
<string>icon-29#3x.png</string>
<string>icon-40#2x.png</string>
<string>icon-40#3x.png</string>
<string>icon-60#2x.png</string>
<string>icon-60#3x.png</string>
</array>
</dict>
</dict>
Are the above lines are necessary to include in plist file? What other things are necessary to include in plist file.
And My project structure is :
What is wrong with my code? How can I add all files and assets?
Any idea?
Delete all images and those lines from the info.plist.
Your Info.Plist should have the following lines:
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>XSLaunchImageAssets</key>
<string>Assets.xcassets/LaunchImage.launchimage</string>
Add all the required icons to Asset Catalogs/Media

Rox Xamarin Video 2.1.0 issue

I'm working with Rox Xamarin Video 2.1.0. in xamarin forms
there is url here
I tried to make video view like sample project. but it is not woking.
sample project is working well, but my project is not working.
You need to provide settings in info.plist.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>yourDomainName.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>

iOS8 Handoff - Example project

Having watched the WWDC video I'm keen to adopt handoff in one of my apps, the concept looks easy but the handoff's are not appearing on my other devices, other Apple handoff's are working. I'm guessing my problem relates to the entries in my info.plist file, are there any demo projects that show how to implement handoff? I've searched and failed to find anything.
According to the documentation the plist for a document based app should look like this :
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>NSRTFDPboardType</string>
. . .
<key>LSItemContentTypes</key>
<array>
<string>com.myCompany.rtfd</string>
</array>
. . .
<key>NSUbiquitousDocumentUserActivityType</key>
<string>com.myCompany.myBrowser.browsing</string>
</dict>
</array>
and for a non-document based app:
<key>NSUserActivityTypes</key>
<array>
<string>com.myCompany.myBrowser.browsing</string>
</array>
And the implementation like this :
NSUserActivity* myActivity = [[NSUserActivity alloc]
initWithActivityType: #"com.myCompany.myBrowser.browsing"];
myActivity.userInfo = #{ ... };
myActivity.title = #"Browsing";
[myActivity becomeCurrent];
Sources : https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/Handoff/HandoffProgrammingGuide.pdf

Save documents as folders, like Pages, Numbers, etc

What's the right way to go about saving data like Pages, Numbers and other OSX applications do? That is, it looks like a file to the user, but is in fact a directory (a bundle?) containing a variety of stuff. I have some fairly complex data that I'd like to store in the same way; in particular, some sensor data that needs to be associated with video files.
The Apple official docs on the topic are probably a good starting point.
From the Pages Info.plist file:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pages</string>
</array>
[...]
<key>LSTypeIsPackage</key>
<true/>
[...]
</dict>
</array>
seem to be what does the trick.
It also looks like NSFileWrapper may be part of the answer:
Document-Based Applications Overview FAQ.

Resources