Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Please add Add the following lines to your app's AndroidManifest.xml file (Replace "$APP_ID$" with your application id. e.g: com.appoxee.exampleapp)

     

    Code Block
    languagexml
    themeEclipse
    firstline1
    titleAndroidManifest.xml
    linenumberstrue
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<app package>">
    
        <!-- Required  <permissionfor using internet (which is a must) -->
    	<uses-permission android:name="<app package>android.permission.C2D_MESSAGEINTERNET" />
    	<uses-permission android:protectionLevelname="signatureandroid.permission.ACCESS_NETWORK_STATE" />
    
    	<!-- Required for receiving GCM (push) messages -->
    	<uses-permission android:name="<app package>com.google.android.c2dm.permission.C2D_MESSAGERECEIVE" />
    	<!-- Custom GCM permissions  <application -->
    	<permission android:name="$APP_ID$.permission.C2D_MESSAGE" android:protectionLevel="signature" />
    	<uses-permission android:name="$APP_ID$.permission.C2D_MESSAGE" />
    
    
    	<!-- REQUIREDKeeps forthe C2DMprocessor -->from sleeping when handling received push messages -->
    	<uses-permission  <receiver
                android:name="android.permission.WAKE_LOCK" />
    
    	<!-- For vibrating when showing notification -->
    	<uses-permission android:name="comandroid.appoxeepermission.gcm.PlayBroadcastReceiverVIBRATE" />
    
    
    	<application >
          	<meta-data android:permissionname="com.google.android.c2dmgms.permission.SENDversion"
    >        android:value="@integer/google_play_services_version" />
    
        	<!-- Receive the actual message Must have for Push Support by Appoxee -->
        	<service android:name="com.appoxee.push.PushOpenIntentService" />
    
        <intent	<!--filter> GCM push receiver, custom permission -->
       	 	<receiver
           <action	 	android:name="com.google.android.c2dmgms.intentgcm.RECEIVEGcmReceiver"
    />        		android:exported="true"
            <category 		android:namepermission="<app package>com.google.android.c2dm.permission.SEND" />
                </intent-filter>
    
                <!-- Receive the registration id -->
                		<intent-filter>
                    		<action android:name="com.google.android.c2dm.intent.REGISTRATIONRECEIVE" />
                    		<category android:name="<app package>$APP_ID$" />
                		</intent-filter>
            	</receiver>
    
        	</application>
    </manifest>
    
    

     The following Manifest declarations are needed for Eclipse Integration only (when manifest merging is off): 

    Code Block
    languagexml
    firstline1
    titleEclipse declarations
    linenumberstrue
    <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" />!-- Custom intent service to handle incoming messages -->
        	<service
            		android:name="com.appoxee.gcm.AppoxeeGcmListenerService"
            		android:exported="false" >
            <!-- Required for receiving GCM (push) messages -->
        <uses-permission		<intent-filter>
             	   <action android:name="com.google.android.c2dm.permissionintent.RECEIVE" />
         <!-- Keeps the processor from sleeping when handling received push messages --> 		</intent-filter>
        <uses-permission android:name="android.permission.WAKE_LOCK" />	</service>
    
        	<!-- For vibrating when showing notification InstanceId -->
        <uses-permission android:name="android.permission.VIBRATE" />	<service
              <application >
    
            <meta-data 	 android:name="com.googleappoxee.androidgcm.gms.versionAppoxeeInstanceIDListenerService"
                		android:valueexported="@integer/google_play_services_version" /false">
             <!-- Must have for Push Support by Appoxee -->		<intent-filter>
                		<action  <service android:name="com.appoxee.push.PushOpenIntentService" />google.android.gms.iid.InstanceID"/>
            		</intent-filter>
        	</service>
    
    
        	<!-- MustAdditional havecapabilities forsupport (inbox / extras support, url deep-linking, feedback, more apps screen) -->
            	<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"/>
             <service 	<activity android:name="com.appoxee.gcmactivities.PlayIntentServiceLandingPage" />
    
        	<!-- Needed for geofence 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>

 

...

  1.