Likes Likes:  0
Dislikes Dislikes:  0
Thanks Thanks:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2012
    Posts
    233
    Post Thanks / Like
    Mentioned
    13 Post(s)

    Remote messaging to users

    Hi Dear All,

    I want once in a month or twice(maybe more) to send a message to users who has my app installed and using it. I dont want it like push notification. Similar functionality has appbrain. They call it remote settings. So, from time to time an app is checking for update on text, and when there is an update it loads and save it. And then i decide how and when to show it, it can be simple toast, or something else.

    The purpose is to have some service which provides it. I dont want to include appbrain sdk only for this feature, maybe there is some service like this already with more functions, like having some surveys, and etc.

    Thank you.

  2. #2
    Newbie
    Join Date
    Nov 2012
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    If you are willing to display the message WHEN the user opens your app, that might be easier. You can upload a text file into a website similar to the following:

    Code:
    UPDATE: 7
    This is the text
    Then, every time the main activity starts, download the file and compare the update number (the first line) against a System property, if different, display the text and update the system property to store the latest update number so you don't display it again next time.

    Another kettle of fish if you want to 'push' a message into the user.

  3. #3
    Administrator david's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    752
    Post Thanks / Like
    Mentioned
    67 Post(s)
    Check out Parse.com. It offers push notifications and a dead simple SDK to implement server-side data storage & retrieval.

    The only reason I'm not using it in all of my apps is the 1 million monthly request limit for free accounts. But if you've got light to medium user counts, I reckon it's a fantastic service to use.
    This post represents my own views, and does not necessarily reflect the views or beliefs of my employer.

    My Websites:

    Making Money With Android Blog
    | Forums | Wiki | Live IRC Chat | My Apps on Google Play

    Ad Networks I Use: (use these referral links to get a bonus!)
    Supersonic ($120 bonus) | MobileCore ($100 bonus) | StartApp ($25 bonus) | AppNext | AppBrain | AppFlood

  4. #4
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,396
    Post Thanks / Like
    Mentioned
    66 Post(s)

    Using AppBrain Remote Settings

    Don't disregard AppBrain that fast - their SDKs are stable and easy to use. Plus they are responsive to questions (as someone suggested their founder Uwe Maurer replies to some queries).


    AppBrain's Remote Settings is just an extra - and I don't think you need to show their ads, but you WILL need to include their .jar file.


    Their remote settings are real easy to use - and you set key-value pairs on their website.

    The only downside (which they said they would fix eventually) is that you have to publish the app first and THEN get enabled on their website etc. i.e. they have no APP_TOKEN etc. just identify your app by it's package name etc.


    Once your app is published and you have set up the website etc. properly.

    You can setup a key-value pair whenever you want the app to show something.

    In fact you could setup two key-value pairs like this:

    key_showMessage true
    key_Message This is the message.

    Then to turn off you can do:

    key_showMessage false
    key_Message This is the message.




    Once you setup the key-value pair in the dashboard there, then from within your app you just have to do this for EVERY activity (i.e. it doesn't cost too much to do this in every activity):

    ----
    AppBrain.init(this);
    ----


    To retreive a string is easy enough:

    // if not retreived .. will return defaultString
    //
    String defaultString = "Default Message";
    String valueString = AppBrain.getSettings().get(keyString, defaultString);


    Here is an example for retreiving a boolean flag:

    Code:
    // strings using on AppBrain Remote Settings
    // that signify boolean values ..
    //
    private static final String VALUE_FALSE = "false";
    private static final String VALUE_TRUE = "true";
    
    
    // if keyString is not found on AppBrain server - then return defaultFlag
    //	keyString not found on AppBrain server
    //	if you called this before AppBrain got a chance to download
    //	the daily update from AppBrain servers
    //	usually if you wait 5-10 seconds that process will be completed
    //	(AppBrain updates once a day or so from AppBrain servers to reduce bandwidth)
    //
    
    public static boolean getFlag(Context context, String keyString, boolean defaultFlag) {
    
    	// if not retreived .. will return VALUE_FALSE
    	String flagString;
           
    	if (defaultFlag) {
    		// default == true
    		flagString = AppBrain.getSettings().get(keyString, VALUE_TRUE);
    	} else {
    		// default == false
    		flagString = AppBrain.getSettings().get(keyString, VALUE_FALSE);
    	}
    
    	// can trim() before also (to ignore whitespace around string etc.)
    	//
    	if (flagString.trim().equalsIgnoreCase(VALUE_TRUE.trim())) {
    
    		// the strings are equal (ignoring case)
    		//
    		// flag is "true"
    		//
    		// meaning WAS able to retreive .. i.e. different from VALUE_FALSE
    
    		//Log.d(LOGTAG, "flag = true");
    		
    		return true;
    
    	} else {
    		// flag is "false"
    		//
    		// use the default ..
    		//
    
    		//Log.d(LOGTAG, "flag = false");
    
    		return false;
    	}
    }
    Last edited by adforandroidapps; 2013-01-25 at 06:21 AM.

Similar Threads

  1. Replies: 6
    Last Post: 2013-07-21, 08:06 AM
  2. typical Active Users vs. Total Downloads and DAU vs. Active Users
    By adforandroidapps in forum Advertising Networks
    Replies: 2
    Last Post: 2013-01-31, 09:33 AM
  3. Samsung remote test real devices
    By megasoft78 in forum Android Development
    Replies: 3
    Last Post: 2012-10-04, 11:24 AM
  4. To Airpush users
    By Androider in forum Advertising Networks
    Replies: 2
    Last Post: 2012-08-28, 02:17 PM
  5. [App]All In One Remote. Control any app ever !
    By hisham2007 in forum Promote Your Android App
    Replies: 0
    Last Post: 2012-02-27, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •