-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added links to deploy to ios and android. Closes #1544 #1593
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotNetkow
commented
May 29, 2019
{"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><manifest></code> line in <code>AndroidManifest.xml</code>:</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\"><manifest package=\"com.getcapacitor.myapp\"></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\"><string name=\"app_name\">MyApp</string></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\"><string name=\"title_activity_main\">MyApp</string></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'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\"><string name=\"custom_url_scheme\">com.getcapacitor.myapp</string></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><manifest></code> tag, generally at the bottom\nof the file.</p>\n<p>For example, here's what adding Network permissions looks like:</p>\n\n <highlight-code-line >\n <pre class=\"language-xml\"><code class=\"language-xml\"><manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\npackage=\"com.getcapacitor.myapp\">\n <activity>\n <!-- other stuff -->\n </activity>\n\n <!-- More stuff -->\n\n <!-- Your permissions -->\n\n <!-- Network API -->\n <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\n</manifest></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's <a href=\"https://github.com/ionic-team/capacitor/blob/master/android-template/app/src/main/AndroidManifest.xml\">AndroidManifest.xml</a></p>\n"} |
There was a problem hiding this comment.
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...
jcesarmobile
approved these changes
May 29, 2019
There was a problem hiding this 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.