forked from mixpanel/sample-android-mixpanel-integration
/
AndroidManifest.xml
112 lines (94 loc) · 5.51 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0"?>
<!--
To get your application working with Mixpanel (particularly for push notifications),
you will need to make some changes to your application manifest file.
You can use this file as a model for the sorts of changes required. Be aware that
you will need to replace "com.mixpanel.example.hello" with your application package
name in several places before your application will work.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mixpanel.example.hello"
android:versionCode="1"
android:versionName="1.0" >
<!--
This permission is required to allow the application to send events and properties to Mixpanel.
-->
<uses-permission android:name="android.permission.INTERNET" />
<!--
This permission is optional but recommended so we can be smart about when to send data.
-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!--
This permission is optional but recommended so events will contain information about bluetooth state
-->
<uses-permission android:name="android.permission.BLUETOOTH" />
<!--
These permissions are required to allow the application to receive and display
Google Cloud Messaging notifications from Mixpanel.
-->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!--
This custom permission is also required for Google Cloud Messaging. In your
own applications, you will need to be sure that the permission name is
${application_package}.C2D_MESSAGE
Where ${application_package} is the package name declared in your <manifest> element.
-->
<permission android:name="com.mixpanel.example.hello.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.mixpanel.example.hello.permission.C2D_MESSAGE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<!-- to support 2.2 (Froyo) and older devices, your application should allow fallback
to HTTP if modern HTTPS certificates aren't supported. -->
<meta-data android:name="com.mixpanel.android.MPConfig.DisableFallback"
android:value="false" />
<!-- The Mixpanel library will automatically attempt to show available surveys or in
app notifications every time a new Activity is displayed. To disable this behavior,
add the following line. The default value for this option is set to true. -->
<meta-data android:name="com.mixpanel.android.MPConfig.AutoShowMixpanelUpdates"
android:value="false" />
<!-- If you wish to test receiving surveys or notifications multiple times, the following option
will prevent tracking that a survey or notification has been displayed to Mixpanel.
This will allow you to tweak your surveys or in app notifications without having to create
a new one each time. -->
<meta-data android:name="com.mixpanel.android.MPConfig.TestMode"
android:value="true" />
<!-- This will enable various debugging messages that shows communication between the Mixpanel
Android library and the Mixpanel API servers, which are useful for seeing when track requests
go out and when surveys and notifications are received. -->
<meta-data android:name="com.mixpanel.android.MPConfig.EnableDebugLogging"
android:value="true" />
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- This activity allows your application to show Mixpanel surveys and takeover in app notifications.
If you only wish to show mini in app notifications, you do not need to declare this Activity.
You may also specify a different theme to better fit the look and feel of your application. -->
<activity android:name="com.mixpanel.android.surveys.SurveyActivity"
android:theme="@style/com_mixpanel_android_SurveyActivityTheme"/>
<!-- This receiver will allow your application to register for and receive Mixpanel push notifications -->
<receiver android:name="com.mixpanel.android.mpmetrics.GCMReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.mixpanel.example.hello" />
</intent-filter>
</receiver>
<!-- This receiver will allow your application to record referrer parameters as super properties automatically -->
<receiver android:name="com.mixpanel.android.mpmetrics.InstallReferrerReceiver" android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
</application>
</manifest>