Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

  1. Please add the following lines to your app's AndroidManifest.xml file : 

    AndroidManifest.xml
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<app package>">
    
      
        <permission android:name="<app package>.permission.C2D_MESSAGE" android:protectionLevel="signature" />
        <uses-permission android:name="<app package>.permission.C2D_MESSAGE" />
    
        <application >
    
            <!-- REQUIRED for C2DM -->
    
            <receiver
                android:name="com.appoxee.gcm.PlayBroadcastReceiver"
                android:permission="com.google.android.c2dm.permission.SEND" >
    
                <!-- Receive the actual message -->
                <intent-filter>
                    <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                    <category android:name="<app package>" />
                </intent-filter>
    
                <!-- Receive the registration id -->
                <intent-filter>
                    <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                    <category android:name="<app package>" />
                </intent-filter>
            </receiver>
    
        </application>
    </manifest>
    
    
  2.  The following Manifest declarations are needed for Eclipse Integration only (when manifest merging is off): 

    Eclipse declarations
    <manifest >
    
       <!-- Required for using internet (which is a must) -->
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    
        <!-- Required for receiving GCM (push) messages -->
        <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    
        <!-- Keeps the processor from sleeping when handling received push messages -->
        <uses-permission android:name="android.permission.WAKE_LOCK" />
    
        <!-- For vibrating when showing notification -->
        <uses-permission android:name="android.permission.VIBRATE" />
        
        <application >
    
            <meta-data android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version" />
    
            <!-- Must have for Push Support by Appoxee -->
    		<service android:name="com.appoxee.gcm.PlayIntentService" />
            <service android:name="com.appoxee.push.PushOpenIntentService" />
    
            <!-- Include for inbox/more-apps/feedback support -->
            <activity android:name ="com.appoxee.activities.InboxMessage"/>
            <activity android:name="com.appoxee.activities.Inbox"/>
            <activity android:name="com.appoxee.activities.MoreApps"/>
            <activity android:name="com.appoxee.activities.Feedback"/>
    
    		<!-- For geo-fences support -->
            <service android:name="com.appoxee.geo.GeofenceTransitionsIntentService"/>
            <service android:name="com.appoxee.geo.AppoxeeGeofencingManager" />
    
            <receiver android:enabled="true" android:name=".geo.BootCompleteReceiver">
                <intent-filter>
                    <action android:name="android.intent.action.BOOT_COMPLETED" />
                </intent-filter>
            </receiver>
    
        </application>
    
    </manifest>

 

 

  • No labels