-
Notifications
You must be signed in to change notification settings - Fork 1
Build relationships
###Step 3: Build relationships
If all of your users are not the same, why would you show them the same information? Segment your audience based on common interest, location, usage or your own CRM info (budget, purchase, product preferences...) and carry out customized actions. And because not all your commercial actions have the same results we help you to distinguish which ones have been effective to repeat or even improve them. This page will show you the actions that you can perform to improve the value of your application for your users.
####Push Notifications With Push Messaging you can develop super-personalized alerts based on each individual’s changing interests and location. This is the most direct way to keep in touch with your users.
To get push notifications in your application with malcom:
-
Add the proper permissions, receiver and services needed in your AndroidManifest.xml (replace
<PACKAGE>
with your application package)<permission android:name="<PACKAGE>.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="<PACKAGE>.permission.C2D_MESSAGE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <receiver android:name="com.malcom.library.android.module.notifications.gcm.MalcomGCMBroadcastReceiver" 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="<PACKAGE>" /> </intent-filter> </receiver> <service android:name="com.malcom.library.android.module.notifications.gcm.GCMIntentService" /> <service android:name="com.malcom.library.android.module.notifications.services.PendingAcksDeliveryService" />
-
Set the senderId obtained from Google
MCMCoreAdapter.getInstance().setSenderId(SENDER_ID);
-
Add this line to register the device for notifications
MCMCoreAdapter.getInstance().moduleNotificationsRegister(getApplicationContext(),"<Title>",<MainActivity>.class);
-
Add the check for new notifications to the onCreate() method of the
MainActivity
from the line beforeMCMCoreAdapter.getInstance().moduleNotificationsCheckForNewNotifications(getApplicationContext(),getIntent());
####In app Campaigns
Programme customized in-app messasing or special campaigns when your users need it, while they are using it! The campaigns module let you add diferent information wherever you want in your application. Campaigns to remember your users to rate the app are availables too.
This is an example of how you can advertise one of your app from another using the cross selling campaign:
-
Add a RelativeLayout on the activity's layout with the id campaign_banner_layout
<RelativeLayout android:id="@+id/campaign_banner_layout" android:layout_width="fill_parent" android:layout_height="fill_parent"> </RelativeLayout>
-
Add this line to your activity onCreate method
MCMCoreAdapter.getInstance().moduleCampaignAddCrossSelling(this);
We have other campaign types such as promotions and rate my app. If you are interested can find more information about campaigns here
####Final step: Read our technical support to guide you through implementation details.