=====================================
Building Your iOS App With ownBrander
=====================================

At last you have arrived to the point where you can actually build your 
branded iOS app. Log into your account on `Customer.owncloud.com 
<https://customer.owncloud.com/owncloud/>`_ and open the ownBrander app.

.. figure:: ../images/ownbrander-1.png

If you don't see the ownBrander app, open a support request (Open Case 
button).

Your first ownBrander task is to review the iOS page on ownBrander for your 
image requirements. You will need a lot of them, in specific sizes and formats, 
and they're all listed on the ownBrander page.

There are three sections: Required, Suggested, and Advanced. The Required 
sections contains all of the required elements that you must configure. 
Suggested and Advanced allow additional customizations.

When you have completed and submitted your app, email your three provisioning 
profiles and P12 certificate to branding@owncloud.com.

Required Section
----------------

Enter your application name. This can be anything; in this example it is the 
same name used in our signing certificate examples.

.. figure:: ../images/ownbrander-13.png

Next, enter your ownCloud server URL. This hard-codes it into your app. If you 
leave this blank then your users will have to enter it every time they use the 
app. 

.. figure:: ../images/ownbrander-15.png

Check **Server URL Visible** to make your ownCloud server URL the default, and 
to allow your users to enter a different URL.

.. figure:: ../images/ownbrander-16.png

And now, the all-important **Bundle ID**. Make sure that this is exactly the 
same as the **Bundle ID** you created on 
`Developer.apple.com <developer.apple.com>`_ (see :doc:`publishing_ios_app_3`).

.. figure:: ../images/ownbrander-17.png

You must also enter the **App Group** you created.

.. figure:: ../images/ownbrander-18.png

Check **Show multi-account or disconnect** if you plan to allow your users to 
have more than one ownCloud account.

.. figure:: ../images/ownbrander-19.png

Check **Enable SAML** authentication if that is what you use on your ownCloud 
server. Otherwise leave it blank.

.. figure:: ../images/ownbrander-20.png

**Number of uploads shown** controls the length of the most recent uploads list 
on the app. The default is 30.

.. figure:: ../images/ownbrander-21.png

The next section is for uploading your custom artwork to be built 
into the app. The ownBuilder app tells you exactly which images you need, and 
their required size. Click the example images on the right to enlarge them.

.. figure:: ../images/ownbrander-14.png
   :scale: 70%
   
You may enter a custom **User agent**, which is useful for traffic analysis and 
whitelisting your app.
   
.. figure:: ../images/ownbrander-22.png
   :scale: 70%

Check **Recommend** to open a Twitter, Facebook, and Email recommendation 
configurator.

.. figure:: ../images/ownbrander-23.png

If you have online help, enter the URL here.

.. figure:: ../images/ownbrander-24.png

Enter a **Feedback email** address, if you have one.

.. figure:: ../images/ownbrander-25.png

Enter your **Imprint URL** (your "about" page)

.. figure:: ../images/ownbrander-26.png

Check **Show a "new account" link in app** to allow new users to request a new 
account.

.. figure:: ../images/ownbrander-27.png

That completes the required elements of your branded iOS app.

Suggested Section
-----------------

The Suggested section allows you to customize additional elements such as text 
and background colors, and icons. The Suggested items are all optional.

Advanced Section
----------------

The Advanced section allows you to optionally customize the color of messages 
such as connection status, error messages, letter separators, buttons, and 
additional icons.

Generate iOS App
----------------

When you have uploaded all of your images and completed your customizations, 
click the **Generate iOS App** button and take a well-deserved break. Remember 
to email your three provisioning profiles and P12 certificate to 
branding@owncloud.com.

.. figure:: ../images/ownbrander-28.png

You may go back and make changes, and when you click the **Generate iOS App** 
button the build system will use your latest changes.

Check your account on `Customer.owncloud.com 
<https://customer.owncloud.com/owncloud/>`_ in 48 hours to see your new branded 
ownCloud app.
