Search Unity

Android Application Run in Background Always

Discussion in 'Android' started by Ankit-Priyarup, Sep 7, 2014.

  1. Ankit-Priyarup

    Ankit-Priyarup

    Joined:
    Mar 7, 2013
    Posts:
    52
    Hi there
    I am developing an application using new unity 4.6 gui tools. I want my chat application to be run always in background whenever the phone is turned on so that local chat notifications can be shown.
    Thanks in advance
     
  2. thxfoo

    thxfoo

    Joined:
    Apr 4, 2014
    Posts:
    515
  3. Ankit-Priyarup

    Ankit-Priyarup

    Joined:
    Mar 7, 2013
    Posts:
    52
    Is it possible in unity?
     
  4. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    You will have to write a java plugin to create a service as well as registering that service in the Android Manifest. I would recommend writing the plugin as an Android Library Project.
     
  5. Ankit-Priyarup

    Ankit-Priyarup

    Joined:
    Mar 7, 2013
    Posts:
    52
  6. Naeim

    Naeim

    Joined:
    Apr 16, 2014
    Posts:
    4
    could you find your soulotion?
    if yes can you share a simple guide and tell where to start ?
     
  7. Ankit-Priyarup

    Ankit-Priyarup

    Joined:
    Mar 7, 2013
    Posts:
    52
    Nope! I dropped my idea