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_MESSAGE" android:protectionLevel="signatureINTERNET" />
    	<uses-permission android:name="android.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 messageMust 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>
    
      </receiver>  	<!-- Custom intent service </application>
    </manifest>
    
    

     The following Manifest declarations are needed for Eclipse Integration only : 

    Code Block
    languagexml
    firstline1
    titleEclipse declarations
    linenumberstrue
    <manifest to handle incoming messages -->
        	<service
    <!-- REQUIRED -->     <uses-permission 		android:name="androidcom.appoxee.permissiongcm.INTERNETAppoxeeGcmListenerService"
      />     <uses-permission 		android:nameexported="android.permission.VIBRATEfalse" />
         <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
        <uses-permission   		<intent-filter>
             	   <action android:name="com.google.android.c2dm.permissionintent.RECEIVE" />
        <!-- GCM requires a Google account. --> 		</intent-filter>
        <uses-permission android:name="android.permission.GET_ACCOUNTS" />	</service>
    
        	<!-- KeepsInstanceId the-->
    processor from sleeping when a	<service
    message is received. -->     <uses-permission	 android:name="androidcom.appoxee.permissiongcm.WAKE_LOCKAppoxeeInstanceIDListenerService"
    />       <uses-permission 		android:nameexported="android.permission.ACCESS_NETWORK_STATE" /false">
             <application >		<intent-filter>
                <meta-data		<action android:name="com.google.android.gms.iid.version"
                android:value="@integer/google_play_services_version" /InstanceID"/>
             		<!/intent--filter>
    Must have for Push Support by Appoxee -->
            <service android:name="com.appoxee.push.PushOpenIntentService" /> 	</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.