Discussion Forums  >  Self Hosted Control Panels

Replies: 16    Views: 248

RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
06/18/13 10:37 PM (12 years ago)

Over The Air Distribution not working…

Anybody get this working? My app works fine on my provisioned iPhone5 and iPad3 from xcode, but I need to be able to download them over the air without using a computer and xcode. I archived my app and uploaded the app.ipa and app.plist files but when I go to the iOS Install Screen url I get this error: "There was a problem processing your request. This applications download directory could not be found?” any help?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/18/13 11:21 PM (12 years ago)
Yeah, that can be a pain sometimes. It really comes down to PHP settings, although I haven't found the 'magic bullet' yet for settings... In a nutshell, you'll have to modify the 'app.plist' and complete the 'actual' path to your app. By default it uses a little short cut kind of link that doesn't always work. I wrote a tutorial, it might help... https://dl.dropboxusercontent.com/u/115208762/iOS_OTA.pdf It's not as pretty as the ones done with Clarify, but it might be sufficient. Cheers! -- Smug
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
06/20/13 08:18 PM (12 years ago)
Great tutorial! thanks.
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
06/20/13 08:54 PM (12 years ago)
However it still didn’t work. 2 things is the problem: Problem #1: the iOPS install URL that the control panel is giving me is: ~~~ http://mydomain.com/download/?id=MYCUSTOMAPPIDNUMBER/platform=ios However, adding that /platform=ios on the end of my custom IP ID # is the problem. If I remove that part from the URL and just type: ~~~ http://mydomain.com/download/?id=MYCUSTOMAPPIDNUMBER then the app shows up fine in my iPad/iPhone safari browser and is telling me to “tap the icon to install” the app. However, after tapping the icon, a 2nd problem arises. Problem #2: For whatever reason, the default buzztouch install is telling my iPod/iPhone this web address to install the app: ~~~ itms-services://?action=download-manifest&url=http://mydomain.com/home/myserverusername/public_html/files/applications/MYCUSTOMAPPIDNUMBER/install-ios/app.plist Somehow it is combining the server path and the domain name together. It is apparently doing this in the /download/index.php file. I hardcoded my /download/index.php to get it to work for the time being.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/21/13 06:06 AM (12 years ago)
I'm glad it works for you, but will the index.php file need to be changed every time you do a new app? I also found that a plain old URL to the app will work, if the device is already setup with a provisioning profile... Cheers! -- Smug
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
06/21/13 09:59 AM (12 years ago)
That’s correct. I’d have to re-code the index.php file for every new app, which sucks. Also, I tried the direct plain url method to my app “http://www.mydomain.com/myapp.ipa and it did not work. Instead my iPad and iPhone doesn’t recognize the file and asks me if I’d like to open it in another program.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/27/13 04:20 PM (12 years ago)
Have you tried http://testflightapp.com Testing it out, and looks wicked :-) Setup was a breeze, added my iPad as soon as I signed up. You can setup "Teams" to send your app to for testing. Cheers Steve
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
06/30/13 10:29 PM (12 years ago)
Nice, thanks Steve!
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
07/03/13 12:03 PM (12 years ago)
TestFlight is nice, but I've found the solution to using it on buzztouch self-host. 2 things need to be done… #1 - In the /download/index.php file, this line of code: $pListOrAPKURL = "itms-services://?action=download-manifest&url=" . fnGetSecureURL(APP_URL) . "/" . $appDirectoryPath . "/install-ios/app.plist"; needs to be changed to this: $pListOrAPKURL = "itms-services://?action=download-manifest&url=" . fnGetSecureURL(APP_URL) . "" . $dataDir . "/install-ios/app.plist"; The problem is the "$appDirectoryPath" should just say $dataDir and that extra forward slash is not needed. #2 - in the /bt_v15/bt_app/bt_overTheAir.php file, this line of code: <?php echo $appInstallURL . "/platform=ios"?> needs to be changed to: <?php echo $appInstallURL . "&platform=ios"?> and this line of code: <?php echo $appInstallURL . "/platform=android"?> needs to be changed to: <?php echo $appInstallURL . "&platform=android"?> This correctly adds the ampersand "&" sign to append the url rather than a slash. Maybe BuzzTouch will update that on the next version. And this way, SmugWinp, the code will work for every app in your control panel.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
07/03/13 12:28 PM (12 years ago)
@RawlsEnterprises. Nice one :-)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/03/13 01:52 PM (12 years ago)
Sweet. Thanks, I'll mod mine and check it out. :) Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/03/13 07:01 PM (12 years ago)
Just clarifying: Change the iOS line from: <?php echo $appInstallURL . "/platform=ios"?> to <?php echo $appInstallURL . "&platform=ios"?> and the Android line from <?php echo $appInstallURL . "/platform=android"?> to <?php echo $appInstallURL . "&platform=android"?> Correct? Cheers! -- Smug
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
07/03/13 07:22 PM (12 years ago)
Yes, as you wrote it. Sorry. Typo. I corrected it above.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/03/13 09:15 PM (12 years ago)
If you have time, can you read through this and ensure that it also mirrors your experience? https://dl.dropboxusercontent.com/u/115208762/BTOTA.pdf Cheers! -- Smug
 
RawlsEnterprises
I hate code!
Profile
Posts: 19
Reg: May 21, 2013
Los Angeles
6,190
like
07/03/13 09:26 PM (12 years ago)
Looks great. All 15 pages. Share with the world. :-) #each1teach1
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
07/03/13 09:58 PM (12 years ago)
Wow! Now THAT is what I call collaboration and creating a great Buzztouch community. Both of you deserve a round of applause! @RawlsEnterprises. For coming up with a solution that helps everyone. @SmugWimp. For documenting and creating a "dummy's guide". All 15-pages of it :-) Here's my glass raised with a "Yo-ho-ho, and a bottle of rum!" Hic! :-)
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
10/23/13 02:42 AM (12 years ago)
Works, great. Thanks.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.