I needed a webview feature, so I used myflashlabs WebView ANE and it's dependencies and added them to my project. I needed to test the feature on my iOS device via USB connection, and well, all kinds of nutty-ness happened and I spent a good part of the day sorting through it.
So to get my USB build up. I had to regenerate my .mobileprovision file and .p12 cert. That got me passed the ugly AuthenticationFailed error on install. Then I had to deal with a second InstallError which I was able to conclude had to do with AIR 29. So I upgraded to 31 and BAM! I got it running via USB. All is cool... (Well it was until I tried to push to test flight).
Compiled the app, pushed it up to iTunes and grabbed a beer. I don't get 2 swigs of this tasty brew down before I get an email that says I have issues with my app. 2 were related to permissions, specifically with the ANE PermissionCheck. Apple tells me I need to ask for permission for Contacts and Calendars (Liars!), but I'm not to my knowledge referencing anything to make such a request... Hmmm, maybe there is some secret 'special request sauce' packed in that ANE I don't know about, so OK, I concede and add the following in my InfoAdditions tag in the app.xml:
<!-- Contacts -->
<string>AP Math would like to access your Contacts</string>
<!-- Calender -->
<string>AP Math would like to access your Calendar</string>
Packaged it up, got the apploader and fired that bad-boy across the interwebs right smack into iTunes.... And wait....
Email comes in and 2 issues down. This time the only problem is the 'Missing Push Notification Entitlement' issue, but at least it passed and thumbed a lift over to TestFlight... Pesky Propellerheads....
Interestingly, I'm not using push notifications and they are not activated in the developer portal under the app ID, so I don't know why it's suddenly an issue.
Anyway, so now I'm doing all kinds of google-mammy-jammy trying to get a grip on this pistol of a problem. Apple's docs are all but useless and overly general, Ugh! So I finally find this (apparently old) thread about using push notifications and it mentions setting up the aps-environment tag with the whole development/production key thingy... See here: https://www.adobe.com/devnet/air/articles/ios-push-notifications.html
Well, Crash-Bam-alla-kazam! Compiler don't likey. Frug-nuts! Backspace-Delete and goodby to those entitlement tags so I can at least compile.
Does anyone out there have any-hoo of a clue this way of Sunday as to how to clear up this push notification thing? Seriously, I have a lot of breakable things in my home within an arms reach which I am really considering testing the laws of gravity with by hurling them across the room... At a window! Ugh!
So here is the email message from Apple:
Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
Again, the included link isn't much help. Suggestions anyone?
In the mean time, I'll be down the street with my craft beer, tossing rocks in the neighborhood pond to pass the time...