Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example Android Manifest that includes Pilgrim SDK user permissions
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.foursquare.pilgrim.sample">
<!-- The following permissions are added to your manifest file automatically when you import the Pilgrim SDK library: -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Note: storing your credentials in the manifest is deprecated and no longer needed. But not including them, may result in a warning in the console. -->
<meta-data
android:name="pilgrim_sdk_key"
android:value="MY_CLIENT_ID"/>
<meta-data
android:name="pilgrim_sdk_secret"
android:value="MY_CLIENT_SECRET"/>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.