Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

added links to deploy to ios and android. Closes #1544 #1593

Merged
merged 2 commits into from
May 29, 2019

Conversation

dotNetkow
Copy link
Contributor

No description provided.

@dotNetkow dotNetkow requested a review from jcesarmobile May 29, 2019 00:41
{"title":"Configuring Android","description":"Configuring Android","url":"/docs/android/configuration","contributors":["mlynch","jcesarmobile"],"headings":[{"id":"configuring-android","level":1,"text":"Configuring Android"},{"id":"changing-app-id","level":2,"text":"Changing App ID"},{"id":"changing-app-name","level":2,"text":"Changing App Name"},{"id":"changing-custom-url","level":2,"text":"Changing Custom URL"},{"id":"setting-permissions","level":2,"text":"Setting Permissions"},{"id":"default-permissions","level":2,"text":"Default Permissions"}],"srcPath":"./docs-md/android/configuration.md","content":"\n<h1 id=\"configuring-android\">\n \n Configuring Android\n \n</h1>\n<p class=\"intro\">Android apps manage permissions, device features, and other settings by modifying <code>AndroidManifest.xml</code>.</p>\n\n<p class=\"intro\">This file references values from other files in <code>res/values/</code>, to make it easy to update them separately, including <code>styles.xml</code> and <code>strings.xml</code>.</p>\n\n<p class=\"intro\">This article covers the basic modifications you'll need to make to your app. Read the <a href=\"https://developer.android.com/guide/topics/manifest/manifest-intro.html\" target=\"_blank\">Android Manifest</a> docs to learn a whole lot more.</p>\n\n\n<h2 id=\"changing-app-id\">\n <a class=\"heading-link\" href=\"#changing-app-id\"><ion-icon name=\"ios-link\"></ion-icon>\n Changing App ID\n </a>\n</h2>\n<p>To modify the bundle/app id for your app, edit the top <code>&lt;manifest&gt;</code> line in <code>AndroidManifest.xml</code>:</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\">&lt;manifest package=\"com.getcapacitor.myapp\"&gt;</code></pre>\n </highlight-code-line>\n \n<h2 id=\"changing-app-name\">\n <a class=\"heading-link\" href=\"#changing-app-name\"><ion-icon name=\"ios-link\"></ion-icon>\n Changing App Name\n </a>\n</h2>\n<p>To change the name of your app, change the value for <code>app_name</code> in <code>strings.xml</code>:</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\">&lt;string name=\"app_name\"&gt;MyApp&lt;/string&gt;</code></pre>\n </highlight-code-line>\n <p>You probably also want to set the Activity name to match the App, for apps that plan to only have one activity (the main web activity running your app):</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\">&lt;string name=\"title_activity_main\"&gt;MyApp&lt;/string&gt;</code></pre>\n </highlight-code-line>\n \n<h2 id=\"changing-custom-url\">\n <a class=\"heading-link\" href=\"#changing-custom-url\"><ion-icon name=\"ios-link\"></ion-icon>\n Changing Custom URL\n </a>\n</h2>\n<p>Your app can respond to custom URLs on launch, making it possible to handle deeplinks and app interactions.</p>\n<p>To change the URL, search for and modify this line in <code>strings.xml</code>. It&#39;s recommended to set this to the bundle/app id.</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\">&lt;string name=\"custom_url_scheme\"&gt;com.getcapacitor.myapp&lt;/string&gt;</code></pre>\n </highlight-code-line>\n <p>In this example, the app will respond to URLs with the <code>com.getcapacitor.myapp://</code> scheme.</p>\n\n<h2 id=\"setting-permissions\">\n <a class=\"heading-link\" href=\"#setting-permissions\"><ion-icon name=\"ios-link\"></ion-icon>\n Setting Permissions\n </a>\n</h2>\n<p>In Android, permissions your app will need are defined in <code>AndroidManifest.xml</code> inside of the <code>&lt;manifest&gt;</code> tag, generally at the bottom\nof the file.</p>\n<p>For example, here&#39;s what adding Network permissions looks like:</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\">&lt;manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\npackage=\"com.getcapacitor.myapp\"&gt;\n &lt;activity&gt;\n &lt;!-- other stuff --&gt;\n &lt;/activity&gt;\n\n &lt;!-- More stuff --&gt;\n\n &lt;!-- Your permissions --&gt;\n\n &lt;!-- Network API --&gt;\n &lt;uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" /&gt;\n&lt;/manifest&gt;</code></pre>\n </highlight-code-line>\n <p>Generally, the plugin you choose to use will ask you to set a permission. Add it in this file.</p>\n\n<h2 id=\"default-permissions\">\n <a class=\"heading-link\" href=\"#default-permissions\"><ion-icon name=\"ios-link\"></ion-icon>\n Default Permissions\n </a>\n</h2>\n<p>By default, the entire initial permissions requested for the latest version of Capacitor with the standard plugins can be found in the android-template&#39;s <a href=\"https://github.com/ionic-team/capacitor/blob/master/android-template/app/src/main/AndroidManifest.xml\">AndroidManifest.xml</a></p>\n"}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and the other files were auto updated when i ran "npm run start" locally...

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

I've removed the generated .json files

@jcesarmobile jcesarmobile merged commit 3b3ac88 into master May 29, 2019
@jcesarmobile jcesarmobile deleted the docs-publishing branch May 29, 2019 17:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants