AndroidManifest.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<manifest
 3    package="eu.siacs.conversations"
 4    xmlns:android="http://schemas.android.com/apk/res/android">
 5
 6    <permission android:name="eu.siacs.conversations.permission.C2D_MESSAGE"
 7                android:protectionLevel="signature"/>
 8    <uses-permission android:name="eu.siacs.conversations.permission.C2D_MESSAGE"/>
 9
10    <application>
11
12        <receiver
13            android:name="com.google.android.gms.gcm.GcmReceiver"
14            android:exported="true"
15            android:permission="com.google.android.c2dm.permission.SEND" >
16            <intent-filter>
17                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
18                <category android:name="com.example.gcm" />
19            </intent-filter>
20        </receiver>
21
22        <receiver android:name=".services.MaintenanceReceiver"
23                  android:exported="true"
24                  android:permission="android.permission.CHANGE_CONFIGURATION">
25            <intent-filter>
26                <action android:name="eu.siacs.conversations.RENEW_INSTANCE_ID"/>
27            </intent-filter>
28        </receiver>
29
30        <service
31            android:name=".services.PushMessageReceiver"
32            android:exported="false" >
33            <intent-filter>
34                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
35            </intent-filter>
36        </service>
37
38        <service android:name=".services.InstanceIdService" android:exported="false">
39            <intent-filter>
40                <action android:name="com.google.android.gms.iid.InstanceID"/>
41            </intent-filter>
42        </service>
43    </application>
44</manifest>